[so] Forking Multithreaded Programs?
Stefan Bucur
stefan.bucur at gmail.com
Tue Nov 10 18:54:24 EET 2009
Salut!
Mersi mult! :) This is really helpful!
Stefan
2009/11/10 Cosmin Ratiu <cosminratiu at gmail.com>:
> Salut.
>
> Uite aici mai multe informatii:
> http://www.linuxprogrammingblog.com/threads-and-fork-think-twice-before-using-them
>
> In principiu: don't do it :).
>
> Cosmin.
>
> 2009/11/10 Stefan Bucur <stefan.bucur at gmail.com>
>>
>> Salutari!
>>
>> Am primit azi o intrebare de la cineva, la care n-am reusit sa
>> raspund. Am cautat si pe internet, insa n-am gasit nici un raspuns
>> relevant.
>>
>> Cum poti face fork la un program multi-threaded, in sensul ca sa
>> copiezi toate thread-urile in noul proces? Din specificatiile POSIX,
>> fork() nu copiaza decat thread-ul apelant, lucru care este un pic
>> ciudat, avand in vedere ca celelalte thread-uri isi tin stiva in
>> spatiul de adresa al procesului si practic ar putea fi copiate si ele,
>> la randul lor.
>>
>> Any thoughts on this?
>>
>> Stefan
>> _______________________________________________
>> so mailing list
>> so at cursuri.cs.pub.ro
>> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>
>
> _______________________________________________
> so mailing list
> so at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>
>
More information about the so
mailing list