Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!success){
- // up
- sema_up(exec_sema);
- thread_exit();
- }else{
- // add up
- struct child_thread_struct *new_child =malloc(sizeof(struct child_thread_struct));
- new_child->t=thread_current();
- list_push_back(&args->parent_thread->childern,&new_child->elem);
- sema_up(exec_sema);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement