public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: John Richard Moser <nigelenki@comcast.net>
To: vlobanov <vlobanov@speakeasy.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Quick question.
Date: Sat, 10 Jul 2004 22:09:41 -0400	[thread overview]
Message-ID: <40F0A165.9090203@comcast.net> (raw)
In-Reply-To: <Pine.LNX.4.58.0407101826040.19771@shell1.speakeasy.net>

-----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@vger.kernel.org
| 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-----

      reply	other threads:[~2004-07-11  2:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-11  1:29 Quick question vlobanov
2004-07-11  2:09 ` John Richard Moser [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40F0A165.9090203@comcast.net \
    --to=nigelenki@comcast.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vlobanov@speakeasy.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox