1 / 6

CS 416- Fall 2008 Session 02

CS 416- Fall 2008 Session 02. TA: Tuan Phan Email: tphan@cs.rutgers.edu 732-445-6450 (ext 9644) : Just leaving msg( prefer using Email, with HEADER: [CS416] …) Recitation: TH :3:35pm – 4:30 PM @ SEC 202 Office Hour: TH 5:00 – 6:00 PM @ Hill 367

thane-beck
Download Presentation

CS 416- Fall 2008 Session 02

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS 416- Fall 2008Session 02 TA: Tuan Phan Email: tphan@cs.rutgers.edu 732-445-6450 (ext 9644) : Just leaving msg( prefer using Email, with HEADER: [CS416] …) Recitation: TH :3:35pm – 4:30 PM @ SEC 202 Office Hour: TH 5:00 – 6:00 PM @ Hill 367 Another place to find me: PANIC LAB, CORE 340 Extra: Email to setup appointment on Monday afternoon. TA’s Web Site: http://paul.rutgers.edu/~tphan/cs416/ Slides for recitation, Useful Links

  2. Today’s topics • Remind about the submission system • Project 1 • New system_call howto? • Where to insert the counting variables? • fork, vfork, execve & clone. • PThread Library

  3. ADD NEW SYSTEM CALL - SUMMARY • Modify entry.S, unistd.h • Create chad.c & chad.h -> ~linux/kernel/ • Update the Makefile • Compile the new kernel.

  4. sys_fork() • ~linux/arch/i386/kernel/process.c • asmlinkage int sys_fork(struct pt_regs regs) { return do_fork(SIGCHLD, regs.esp, &regs, 0); }

  5. Using extern • The extern keyword is used to inform the compiler about variables declared outside of the current scope. • E.g: • extern int fork_count; • extern void my_function(int a, int b);

  6. Pthread Tutorial • Links: • https://computing.llnl.gov/tutorials/pthreads/

More Related