Home > Software engineering >  The information in the process control block
The information in the process control block

Time:11-20

1 the process identifier,
2 processor status, the processor status also known as processor context, is mainly composed of the contents of the various processor registers,
3 process scheduling information
4 process control information,

CodePudding user response:

Typedef struct _TIB
{
PEXCEPTION_REGISTRATION_RECORD pvExcept;//00 h Head of exception record list
PVOID pvStackUserTop;//04 h Top of user stack
PVOID pvStackUserBase;//08 h Base of user stack

The union//0 ch (NT/Win95 differences)
{
Struct//Win95 fields
{
WORD pvTDB;//0 ch TDB
WORD pvThunkSS;//0 eh SS selector, informs the for thunking to 16 bits
DWORD unknown1;//10 h
} WIN95;

Struct//WinNT fields
{
PVOID SubSystemTib;//0 ch
ULONG FiberData;//10 h
} WINNT;
} TIB_UNION1;

PVOID pvArbitrary;//14 h Available for application use
Struct _tib * ptibSelf;//18 h Linear address of TIB structure

The union//1 ch (NT/Win95 differences)
{
Struct//Win95 fields
{
WORD TIBFlags;//1 ch
WORD Win16MutexCount;//1 eh
DWORD DebugContext;//20 h
DWORD pCurrentPriority;//24 h
DWORD pvQueue; 28 h//the Message Queue selector
} WIN95;

Struct//WinNT fields
{
DWORD unknown1;//1 ch
DWORD processID;//20 h
DWORD threadID;//24 h
DWORD unknown2;//28 h
} WINNT;
} TIB_UNION2;

PVOID * pvTLSArray;//2 ch Thread Local Storage array

The union//30 h (NT/Win95 differences)
{
Struct//Win95 fields
{
PVOID * pProcess;//30 h Pointer to owning the process database
} WIN95;
} TIB_UNION3;

} TIB * PTIB;
  • Related