On Thu, Oct 24, 2002, zze-BDE balg011 VAUCHER Laurent DvSI/SIReS/GRE wrote:
> My question is simple : since Pth is implemented completely
> in user-space, is is 'compatible' with (possibly) kernel-space
> threads ?
>
> I mean : if my process creates n 'system'-threads with
> pthread_create, can each of these have its own Pth scheduler and
> pth-threads ?
>
> Technically, I'd like to take advantage of kernel multi-processor
> support if present but still have the non-preemptive scheduling
> inside each system-thread.
Technically, as long as GNU Pth is not build with --enable-pthreads and
your vendor/system Pthreads implementation of machine context switching
does not conflict with the one GNU Pth selected for your platform (see
the output in the configure step), then.... yes, under this situation
you could mix them.
To just get multi-processor support you do not have to use vendor
Pthreads, of course. Alternatively can use a combined process+thread
model, i.e., you fork(2) processes (which are spreaded over multiple
processors by the OS) and run a GNU Pth scheduling instance in every
process. In this approach you completely avoid a conflict in the machine
context switching approach and achieve the same effect.
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
GNU Portable Threads (Pth) http://www.gnu.org/software/pth/
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager (Majordomo) [EMAIL PROTECTED]