thread - #ifndef _THREAD_H_ #define _THREAD_H_ /* *...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
#ifndef _THREAD_H_ #define _THREAD_H_ /* * Definition of a thread. */ /* Get machine-dependent stuff */ #include <machine/pcb.h> struct addrspace; struct thread { /**********************************************************/ /* Private thread members - internal to the thread system */ /**********************************************************/ struct pcb t_pcb; char *t_name; const void *t_sleepaddr; char *t_stack; /**********************************************************/ /* Public thread members - can be used by other code */ /**********************************************************/ /* * This is public because it isn't part of the thread system, * and will need to be manipulated by the userprog and/or vm * code. */ struct addrspace *t_vmspace; /* * This is public because it isn't part of the thread system, * and is manipulated by the virtual filesystem (VFS) code. */ struct vnode *t_cwd; }; /* Call once during startup to allocate data structures. */ struct thread *thread_bootstrap(void);
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/15/2012 for the course CS 153 taught by Professor Brecht during the Spring '12 term at Alabama.

Page1 / 2

thread - #ifndef _THREAD_H_ #define _THREAD_H_ /* *...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online