Thread VS process

P

Pallav singh

Hi

Posix threads library is used as portable library across different OS
Platform
API provided by Posix will map to different Thread API provided by OS
on which
Our Application is running ( Using Posix Thread Library ). Hence Api
like thread
creation, Scheduling , synchronization mechanism…. Will map to OS call
doing this.

Is there any Thread Library , which does scheduling on it own ? For
OS it should have
only Information on Process, it does not have any idea of threads
inside Process

Thanks
Pallav Singh
 
K

Keith Thompson

Pallav singh said:
Posix threads library is used as portable library across different OS
Platform API provided by Posix will map to different Thread API
provided by OS on which Our Application is running ( Using Posix
Thread Library ). Hence Api like thread creation, Scheduling ,
synchronization mechanism…. Will map to OS call doing this.

Is there any Thread Library , which does scheduling on it own ? For OS
it should have only Information on Process, it does not have any idea
of threads inside Process

You'll probably get better information in comp.programming.threads.
 
E

Ersek, Laszlo

Posix threads library is used as portable library across different OS
Platform API provided by Posix will map to different Thread API provided
by OS on which Our Application is running ( Using Posix Thread Library
). Hence Api like thread creation, Scheduling , synchronization
mechanism?. Will map to OS call doing this.

Is there any Thread Library , which does scheduling on it own ? For OS
it should have only Information on Process, it does not have any idea of
threads inside Process

http://en.wikipedia.org/wiki/GNU_Portable_Threads
http://www.gnu.org/software/pth/

lacos
 
T

Tom St Denis

Is there  any Thread Library , which does scheduling on it own ? For
OS it should have
only Information on Process, it does not have any idea of threads
inside Process

You're basically asking about some sort of co-operative multitasking
done entirely inside the application at that point. Basically the
application in reality is one OS process but has multiple co-routines
which it switches between without OS intervention [e.g. timers or what
not to force switching, hence "co-operative"].

In general, on hosted platforms most people forgo that nightmare and
just use pthreads and/or multiple processes with IPC.

Also check out the other group that Keith pointed out.

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top