Structs
Como se modificaron las structs proveídas por PintOS y otras estructuras que se crearon para manejar las funcionalidades de los programas de usuario.
struct thread
{
/*
MISMOS MIEMBROS QUE EN LA ASIGNACIÓN ANTERIOR.
*/
tid_t parent;
tid_t child_waiting;
bool child_load;
bool child_status;
bool children_init;
struct hash children;
struct semaphore exec_sema;
struct lock wait_lock;
struct condition wait_cond;
#ifdef USERPROG
/* Owned by userprog/process.c. */
uint32_t *pagedir; /* Page directory. */
#endif
/* Used for filesys interaction */
int fd_next; /* ID of fiel descriptor*/
struct list files;
int fd_exec;
}Last updated