1 #ifndef HEADER_THREAD_H
2 #define HEADER_THREAD_H 1
21 enum thread_status status;
26 struct addrspace addrspace;
30 void thread_init (void);
32 struct thread *thread_create (const char *name,
33 void (*function) (void *aux), void *aux);
34 void thread_destroy (struct thread *);
35 struct thread *thread_current (void);
38 bool thread_execute (const char *filename);
41 void thread_start (struct thread *);
42 void thread_ready (struct thread *);
43 void thread_exit (void);
45 void thread_yield (void);
46 void thread_sleep (void);
47 void thread_schedule (void);
49 void thread_self_test (void);