[so] Forking Multithreaded Programs?

Cosmin Ratiu cosminratiu at gmail.com
Tue Nov 10 18:49:38 EET 2009


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20091110/9eb392d3/attachment.htm>


More information about the so mailing list