cs 134 operating systems
play

CS 134: Operating Systems More Synchronization 1 / 11 Overview - PowerPoint PPT Presentation

CS34 2013-05-19 CS 134: Operating Systems More Synchronization CS 134: Operating Systems More Synchronization 1 / 11 Overview CS34 Overview 2013-05-19 Overview Homework Discussion Homework Discussion 2 / 11 Homework Discussion


  1. CS34 2013-05-19 CS 134: Operating Systems More Synchronization CS 134: Operating Systems More Synchronization 1 / 11

  2. Overview CS34 Overview 2013-05-19 Overview Homework Discussion Homework Discussion 2 / 11

  3. Homework Discussion Questions About Unix CS34 Questions About Unix 2013-05-19 Homework Discussion We should have talked about this last Thursday: 1. What does getpid do? 2. What does stime do? Questions About Unix 3. What is interesting about readdir ? 4. How many system calls does Linux have? We should have talked about this last Thursday: 5. What did you run strace on, and what did you learn? 1. What does getpid do? 2. What does stime do? 3. What is interesting about readdir ? 4. How many system calls does Linux have? 5. What did you run strace on, and what did you learn? 3 / 11

  4. Homework Discussion Questions About Unix CS34 Questions About Unix 2013-05-19 Homework Discussion We should have talked about this last Thursday: 1. What does getpid do? Returns the current process ID 2. What does stime do? Questions About Unix 3. What is interesting about readdir ? 4. How many system calls does Linux have? We should have talked about this last Thursday: 5. What did you run strace on, and what did you learn? 1. What does getpid do? Returns the current process ID 2. What does stime do? 3. What is interesting about readdir ? 4. How many system calls does Linux have? 5. What did you run strace on, and what did you learn? 3 / 11

  5. Homework Discussion Questions About Unix CS34 Questions About Unix 2013-05-19 Homework Discussion We should have talked about this last Thursday: 1. What does getpid do? Returns the current process ID 2. What does stime do? Sets the time of day. What might that involve? Questions About Unix 3. What is interesting about readdir ? 4. How many system calls does Linux have? We should have talked about this last Thursday: 5. What did you run strace on, and what did you learn? 1. What does getpid do? Returns the current process ID 2. What does stime do? Sets the time of day. What might that involve? 3. What is interesting about readdir ? 4. How many system calls does Linux have? 5. What did you run strace on, and what did you learn? 3 / 11

  6. Homework Discussion Questions About Unix CS34 Questions About Unix 2013-05-19 Homework Discussion We should have talked about this last Thursday: 1. What does getpid do? Returns the current process ID 2. What does stime do? Sets the time of day. What might that involve? Questions About Unix 3. What is interesting about readdir ? “This is not the function you are interested in.” 4. How many system calls does Linux have? We should have talked about this last Thursday: 5. What did you run strace on, and what did you learn? 1. What does getpid do? Returns the current process ID 2. What does stime do? Sets the time of day. What might that involve? 3. What is interesting about readdir ? “This is not the function you are interested in.” 4. How many system calls does Linux have? 5. What did you run strace on, and what did you learn? 3 / 11

  7. Homework Discussion Questions About Unix CS34 Questions About Unix 2013-05-19 Homework Discussion We should have talked about this last Thursday: 1. What does getpid do? Returns the current process ID 2. What does stime do? Sets the time of day. What might that involve? Questions About Unix 3. What is interesting about readdir ? “This is not the function you are interested in.” . . . nor is getdents . 4. How many system calls does Linux have? We should have talked about this last Thursday: 5. What did you run strace on, and what did you learn? 1. What does getpid do? Returns the current process ID 2. What does stime do? Sets the time of day. What might that involve? 3. What is interesting about readdir ? “This is not the function you are interested in.” . . . nor is getdents . 4. How many system calls does Linux have? 5. What did you run strace on, and what did you learn? 3 / 11

  8. Homework Discussion Questions About Unix CS34 Questions About Unix 2013-05-19 Homework Discussion We should have talked about this last Thursday: 1. What does getpid do? Returns the current process ID 2. What does stime do? Sets the time of day. What might that involve? Questions About Unix 3. What is interesting about readdir ? “This is not the function you are interested in.” . . . nor is getdents . 4. How many system calls does Linux have? About 440. We should have talked about this last Thursday: 5. What did you run strace on, and what did you learn? 1. What does getpid do? Returns the current process ID 2. What does stime do? Sets the time of day. What might that involve? 3. What is interesting about readdir ? “This is not the function you are interested in.” . . . nor is getdents . 4. How many system calls does Linux have? About 440. 5. What did you run strace on, and what did you learn? 3 / 11

  9. Homework Discussion Written Answers (1) CS34 Written Answers (1) 2013-05-19 Homework Discussion 1. The kernel for this assignment is configured to use a particular VM system. What is this VM system called? 2. Which register number is used for the stack pointer ( sp ) in OS/161? Written Answers (1) 3. What bus/busses does OS/161 support? 1. The kernel for this assignment is configured to use a particular VM system. What is this VM system called? 2. Which register number is used for the stack pointer ( sp ) in OS/161? 3. What bus/busses does OS/161 support? 4 / 11

  10. Homework Discussion Written Answers (1) CS34 Written Answers (1) 2013-05-19 Homework Discussion 1. The kernel for this assignment is configured to use a particular VM system. What is this VM system called? dumbvm from kern/arch/mips/conf/conf.arch 2. Which register number is used for the stack pointer ( sp ) in OS/161? Written Answers (1) 3. What bus/busses does OS/161 support? 1. The kernel for this assignment is configured to use a particular VM system. What is this VM system called? dumbvm from kern/arch/mips/conf/conf.arch 2. Which register number is used for the stack pointer ( sp ) in OS/161? 3. What bus/busses does OS/161 support? 4 / 11

  11. Homework Discussion Written Answers (1) CS34 Written Answers (1) 2013-05-19 Homework Discussion 1. The kernel for this assignment is configured to use a particular VM system. What is this VM system called? dumbvm from kern/arch/mips/conf/conf.arch 2. Which register number is used for the stack pointer ( sp ) in OS/161? Written Answers (1) #define sp $29 /* stack pointer */ from kern/arch/mips/include/asmdefs.h 3. What bus/busses does OS/161 support? 1. The kernel for this assignment is configured to use a particular VM system. What is this VM system called? dumbvm from kern/arch/mips/conf/conf.arch 2. Which register number is used for the stack pointer ( sp ) in OS/161? #define sp $29 /* stack pointer */ from kern/arch/mips/include/asmdefs.h 3. What bus/busses does OS/161 support? 4 / 11

  12. Homework Discussion Written Answers (1) CS34 Written Answers (1) 2013-05-19 Homework Discussion 1. The kernel for this assignment is configured to use a particular VM system. What is this VM system called? dumbvm from kern/arch/mips/conf/conf.arch 2. Which register number is used for the stack pointer ( sp ) in OS/161? Written Answers (1) #define sp $29 /* stack pointer */ from kern/arch/mips/include/asmdefs.h 3. What bus/busses does OS/161 support? LAMEbus from kern/arch/mips/include/bus.h 1. The kernel for this assignment is configured to use a particular VM system. What is this VM system called? dumbvm from kern/arch/mips/conf/conf.arch 2. Which register number is used for the stack pointer ( sp ) in OS/161? #define sp $29 /* stack pointer */ from kern/arch/mips/include/asmdefs.h 3. What bus/busses does OS/161 support? LAMEbus from kern/arch/mips/include/bus.h 4 / 11

  13. Homework Discussion Written Answers (2) CS34 Written Answers (2) 2013-05-19 4. What is the difference between splhigh and spl0 ? Homework Discussion 5. Why do we use typedef s like u_int32_t instead of simply saying int ? Written Answers (2) 4. What is the difference between splhigh and spl0 ? 6. What must be the first thing in the process control block? 5. Why do we use typedef s like u_int32_t instead of simply saying int ? 6. What must be the first thing in the process control block? 5 / 11

  14. Homework Discussion Written Answers (2) CS34 Written Answers (2) 2013-05-19 4. What is the difference between splhigh and spl0 ? Homework Discussion splhigh() sets spl to the highest value, disabling all interrupts spl0() sets spl to 0, enabling all interrupts from kern/arch/mips/include/spl.h 5. Why do we use typedef s like u_int32_t instead of simply saying int ? Written Answers (2) 4. What is the difference between splhigh and spl0 ? 6. What must be the first thing in the process control block? splhigh() sets spl to the highest value, disabling all interrupts spl0() sets spl to 0, enabling all interrupts from kern/arch/mips/include/spl.h 5. Why do we use typedef s like u_int32_t instead of simply saying int ? 6. What must be the first thing in the process control block? 5 / 11

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend