[so] tema3
Ioana Cutcutache
so@atlantis.cs.pub.ro
Sat, 22 Nov 2003 12:23:03 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_0028_01C3B0F3.605B3F00
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Problemele ce trebuiesc rezolvate folosind monitorul presupun =
rularea la infinit a firelor de executie (de exemplu la bounded buffer =
si producatorii si consumatorii ruleaza la infinit). Deci terminarea =
acestor programe s-ar face cu CTRL-C, si in acest caz nu se mai apeleaza =
functia de distrugere a monitorului. Este ok asa?
Chiar daca se face un handler pt. semnalul ctrl-c, oricum nu ar =
merge destroy-ul pt. ca practic ar mai fi fire blocate in monitor.
------=_NextPart_000_0028_01C3B0F3.605B3F00
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2> Problemele ce =
trebuiesc=20
rezolvate folosind monitorul presupun rularea la infinit a firelor =
de=20
executie (de exemplu la bounded buffer si producatorii si consumatorii =
ruleaza=20
la infinit). Deci terminarea acestor programe s-ar face cu CTRL-C, si in =
acest=20
caz nu se mai apeleaza functia de distrugere a monitorului. Este ok=20
asa?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> Chiar daca se face =
un handler=20
pt. semnalul ctrl-c, oricum nu ar merge destroy-ul pt. ca practic ar mai =
fi fire=20
blocate in monitor.</FONT></DIV></BODY></HTML>
------=_NextPart_000_0028_01C3B0F3.605B3F00--