Hi,
It is my first time using pthreads, so i imagine this is a stupid question.
If one thread do some I/O will it block all others threads within the task
or they can work concurrently?
Thanks
Adhvan
It is my first time using pthreads, so i imagine this is a stupid question.
If one thread do some I/O will it block all others threads within the task
or they can work concurrently?
Thanks
Adhvan
> It is my first time using pthreads, so i imagine this is a stupid question.
> If one thread do some I/O will it block all others threads within the task
> or they can work concurrently?
> It is my first time using pthreads, so i imagine this is a stupid question.
> If one thread do some I/O will it block all others threads within the task
> or they can work concurrently?
--
J o s h u a J o n e s / www.intmain.net / jajones(at)cc.gatech.edu
__ .~.
College of Computing at the | / / _ _ _ _ _ __ __ /V\
Georgia Institue of Technology | / /__ / / / \// //_// \ \/ / // \\
Atlanta, Georgia, U.S. | /____/ /_/ /_/\/ /___/ /_/\_\ /( )\
*Debian GNU/Linux* ^^-^^
Do you know any useful docs/sites for pthreads programming, semaphores and
so on...?
> > It is my first time using pthreads, so i imagine this is a stupid
question.
> > If one thread do some I/O will it block all others threads within the
task
> > or they can work concurrently?
> on linux, all threads are "bound", which means that they all contend
> for resources on a system-wide scale (see pthread_setattr_scope() ?).
> however, on solaris, the pthreads implementation by default chooses
> a process scope, so this may not be the case.
> --
> J o s h u a J o n e s / www.intmain.net / jajones(at)cc.gatech.edu
> __ .~.
> College of Computing at the | / / _ _ _ _ _ __ __ /V\
> Georgia Institue of Technology | / /__ / / / \// file://_// \ \/ / //
\\
> Atlanta, Georgia, U.S. | /____/ /_/ /_/\/ /___/ /_/\_\ /( )\
> *Debian GNU/Linux* ^^-^^
> Do you know any useful docs/sites for pthreads programming, semaphores and
> so on...?
--
J o s h u a J o n e s / www.intmain.net / jajones(at)cc.gatech.edu
__ .~.
College of Computing at the | / / _ _ _ _ _ __ __ /V\
Georgia Institue of Technology | / /__ / / / \// //_// \ \/ / // \\
Atlanta, Georgia, U.S. | /____/ /_/ /_/\/ /___/ /_/\_\ /( )\
*Debian GNU/Linux* ^^-^^
1. Linux kernel scheduling of kernel-space thread - question
Hello!
Can anyone explain how linux schedules kernel-space threads created with
clone()?
Do kernel-space threads behave the same as normal linux processes, in terms
of scheduling I mean? Are they scheduled in the same way as normal processes
are and is their scheduling done by the same scheduler?
Does every created kernel-space thread have it's own task_struct created and
added in kernel's process list for scheduling? What is the role of
thread_struct inside task_struct of every process and has it anything to do
with thread scheduling?
Thanx,
Best regards,
Mario Zagar
3. Linux kernel scheduling of kernel-space threads - question
5. kernel thread VS user space thread in linux
6. how user data is copied from/to kernel
7. Synchronizing user space threads with kernel space in linux
10. does linux JDK 1.1.x use posix threads (pthreads) or green threads?
11. pthreads based on kernel managed threads for FreeBSD 2.1 almost ready
13. PTHREADS kernel/user level threading?