Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: David Taylor <taylor@candd.org>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: Kevin Buettner <kevinb@redhat.com>, gdb-patches@sources.redhat.com
Subject: Re: [PATCH RFA/RFC] Don't use lwp_from_thread() in thread_db_wait()
Date: Wed, 13 Mar 2002 10:38:00 -0000	[thread overview]
Message-ID: <200203131838.NAA11263@houston.candd.org> (raw)
In-Reply-To: Your message of "Wed, 13 Mar 2002 12:46:32 EST." <20020313124632.A14198@nevyn.them.org>

> Date: Wed, 13 Mar 2002 12:46:32 -0500
> From: Daniel Jacobowitz <drow@mvista.com>
> 
> On Wed, Mar 13, 2002 at 12:37:08PM -0500, David Taylor wrote:
> > > Date: Tue, 12 Mar 2002 11:23:31 -0500
> > > From: Daniel Jacobowitz <drow@mvista.com>
> > 
> > > Yes, that could probably be arranged.  Someday we should talk to a
> > > vendor of an M:N threads package and see what we have to work with.  I
> > > don't know of any offhand besides NGPT.
> > 
> > If I understand you correctly, then: Solaris.
> 
> Is it really?
> 
> To clarify, LinuxThreads has one thread per process; IBM's NGPT has
> multiple threads per process, but still multiple processes.  I was
> under the impression that Solaris LWPs would have all threads in one
> process.
> 
> (except of course the terminology gets fuzzy here.  One "process" in
> Solaris includes multiple LWPs which can be executing at the same time. 
> If my understanding above is correct it might be more appropriate to
> call Solaris one-thread-per-LWP).

Perhaps I misunderstood.  Or perhaps it's just a terminology issue.

Solaris >= 2.5.1 has a two level threads implementation --

	. threads, sometimes called user threads
	. light weight processes, sometimes called kernel threads

They are all part of one process.  You can have M user threads mapped
onto N LWPs.

There are two sorts of signals in Solaris -- synchronous (some LWP
executing some thread caused the signal -- e.g., SIGILL, SIGSEGV) and
asynchronous (e.g., SIGINT, SIGQUIT, SIGSTOP, SIGKILL).  Synchronous
signals are delivered to the thread/lwp that caused the signal;
asynchronous signals are delivered to the asychronous signal LWP
(ASLWP), arbitrary thread.



  parent reply	other threads:[~2002-03-13 18:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-11 15:46 Kevin Buettner
2002-03-11 18:47 ` Daniel Jacobowitz
2002-03-11 19:16   ` Kevin Buettner
2002-03-11 19:23     ` Daniel Jacobowitz
2002-03-11 23:52       ` Kevin Buettner
2002-03-12  8:23         ` Daniel Jacobowitz
2002-03-13  9:37           ` David Taylor
2002-03-13  9:55             ` Daniel Jacobowitz
2002-03-13 10:18               ` Andrew Cagney
2002-03-13 10:38               ` David Taylor [this message]
2002-04-02 13:19 ` Daniel Jacobowitz
2002-05-02 14:07   ` Michael Snyder

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=200203131838.NAA11263@houston.candd.org \
    --to=taylor@candd.org \
    --cc=drow@mvista.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kevinb@redhat.com \
    /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