<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Salut,</p>
<p><br>
</p>
<p>Am vazut ca in cursul 8 pus pe ocw se precizeaza ca firele de executie ale unui proces partajeaza masca de semnale (pagina 15 din fisierul PDF). In man (man 7 pthreads) se precizeaza ca "<span style="font-size: 12pt;">As well as the stack, POSIX.1 specifies
that various other attributes </span><span style="font-size: 12pt;">are distinct for each thread, including: ... <span>signal mask (pthread_sigmask(3)) ...".</span></span></p>
<p><span style="font-size: 12pt;"><span><br>
</span></span></p>
<p><span style="font-size: 12pt;"><span>Din cate am putut observa, ceea ce se intampla atunci cand un proces primeste un semnal asincron este ca nucleul se uita daca thread-ul "principal" (cel pentru care pid == tgid) blocheaza sau nu semnalul: daca da, atunci
cauta iterativ prin lista de firele de executie si se opreste la primul thread care nu blocheaza semnalul, daca nu atunci ii livreaza semnalul. Aceste observatii sunt valabile pentru Linux.</span></span></p>
<p><span style="font-size: 12pt;"><span><br>
</span></span></p>
<p><span style="font-size: 12pt;"><span>Prin urmare, fiecare fir de executie dintr-un proces are propria masca de semnale (privata) sau imi scapa mie ceva?</span></span></p>
<p><span style="font-size: 12pt;"><span><br>
</span></span></p>
<p><span style="font-size: 12pt;"><span>Spor,</span></span></p>
<p><span style="font-size: 12pt;"><span>Pirtoaca George Sebastian</span></span></p>
<p><span style="font-size: 12pt;"><span><br>
</span></span></p>
<p><span style="font-size: 12pt;"><span><br>
</span></span></p>
<p><span style="font-size: 12pt;"><span><br>
</span></span></p>
<p></p>
</div>
</body>
</html>