Re: Quick question.

From: John Richard Moser
Date: Sat Jul 10 2004 - 21:11:15 EST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I believe that terminating the thread executing main() terminates the
program.

vlobanov wrote:
| Hi,
|
| I have a quick question about a supposed scenario.
|
| Suppose you have two pthreads - a main pthread and a utility pthread -
| both running in the same application. The utility pthread is currently
| in the middle of doing a recv() call on a network socket. At the same
time,
| the main pthread decides that it's time to exit, and either returns or
| does a series of fork()/execv() calls. Is the behavior of the utility
| pthread in such a case deterministic, and if so, what is it?
|
| Thanks in advance for the help.
|
| -Vadim Lobanov
| -
| To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
| the body of a message to majordomo@xxxxxxxxxxxxxxx
| More majordomo info at http://vger.kernel.org/majordomo-info.html
| Please read the FAQ at http://www.tux.org/lkml/
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFA8KFkhDd4aOud5P8RAgr6AJ9wxIQzbxQfsuucbVT/362Mjaz+NgCgjYYd
VCJKlbnXyAAjQhOlZeqypwM=
=Ys+h
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/