Discussion:
what is the Difference B/W TCB(Thread control block) & PCB(Process)
(too old to reply)
Subhash
2006-09-07 11:32:32 UTC
Permalink
Hi all,
I am learning threads, I am using Pthreads,
i think threads run at user space,
and every thread have it's own TCB, if it's rite,
then what is the size of TCB
what are the contents of it.
What is the difference b/w TCB and PCB.

Regards/-
Subhash..
Barry Margolin
2006-09-07 23:10:11 UTC
Permalink
Post by Subhash
Hi all,
I am learning threads, I am using Pthreads,
i think threads run at user space,
and every thread have it's own TCB, if it's rite,
then what is the size of TCB
what are the contents of it.
What is the difference b/w TCB and PCB.
Your conclusions and the answers to your questions are all
implementation-dependent. Some operating systems have kernel threads,
others do them in user space in the pthreads library. The contents of
the control blocks are very dependent on the OS and library
implementation.
--
Barry Margolin, ***@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
Subhash
2006-09-08 04:29:02 UTC
Permalink
Post by Barry Margolin
Your conclusions and the answers to your questions are all
implementation-dependent. Some operating systems have kernel threads,
others do them in user space in the pthreads library. The contents of
the control blocks are very dependent on the OS and library
implementation.
What is the TCB size in case of Linux 2.4.* kernel
and iam using PThread library, and i want to know the contents of
TCB.. i.e data structure which is used to implement it..

Regards/-
Subhash
Barry Margolin
2006-09-09 01:28:14 UTC
Permalink
Post by Subhash
Post by Barry Margolin
Your conclusions and the answers to your questions are all
implementation-dependent. Some operating systems have kernel threads,
others do them in user space in the pthreads library. The contents of
the control blocks are very dependent on the OS and library
implementation.
What is the TCB size in case of Linux 2.4.* kernel
and iam using PThread library, and i want to know the contents of
TCB.. i.e data structure which is used to implement it..
Since Linux comes with full source, why don't you just look at the
structure definition?

Why do you need to know this, anyway?
--
Barry Margolin, ***@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
Loading...