#include <id.h>
#include <thread.h>
#include <register.h>
#include <scheduler.h>
#include <x86/proc_reg.h>
#include <x86/seg.h>
#include <malloc.h>
#include <string.h>
Functions | |
int | thread_manager_initialize (void) |
Initialze thread manager. | |
Thread * | thread_find (int id) |
Find a thread by id. | |
Thread * | thread_create (Task *task) |
Create a new thread. | |
void | thread_destroy (Thread *thread) |
Destroy a thread. | |
void | thread_exit (Thread *thread, int exitStatus) |
Exit from a thread. | |
Thread * | thread_fork (Task *task) |
Fork a new thread. | |
Variables | |
IdTable | threadTable |
This file provides the implementation for threads
Hassaan Moin Khan (hkhan)
|
Create a new thread. Create a new thread in a specified task.
|
|
Destroy a thread. Free the thread's memory resources and remove it from its task.
|
|
Exit from a thread. Exit from a thread, setting the exit status of the task and exiting from the host task if it is the last.
|
|
Find a thread by id. Find the thread associated with a given thread id.
|
|
Fork a new thread. Fork the current thread to run in a specified task.
|
|
Initialze thread manager. Initialize the thread manager's id tables.
|