140 likes | 287 Views
CS 423 – Operating Systems Design Lecture 4 – LINUX Overview. Roy Campbell Spring 2008. Administration. MP1 Assigned. Due Feb 4. 8am. Login and use virtual machines and kernel Read Tanenbaum Ch 1, 10 Read Understanding the LINUX Kernel, Bovet and Cesati, Chapter 1.
E N D
CS 423 – Operating Systems DesignLecture 4 – LINUX Overview Roy Campbell Spring 2008 CS 423 – Spring 2008
Administration MP1 Assigned. Due Feb 4. 8am. Login and use virtual machines and kernel Read Tanenbaum Ch 1, 10 Read Understanding the LINUX Kernel, Bovet and Cesati, Chapter 1. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
Linux Utility Programs (1) Categories of utility programs: File and directory manipulation commands. Filters. Program development tools, such as editors and compilers. Text processing. System administration. Miscellaneous. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
Linux Utility Programs (2) Figure 10-2. A few of the common Linux utility programs required by POSIX. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
Linux Utility Programs (3) Figure 10-2. A few of the common Linux utility programs required by POSIX. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
Kernel Structure Figure 10-3. Structure of the Linux kernel Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
Processes in Linux Figure 10-4. Process creation in Linux. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
Process Management System Calls in Linux (1) Figure 10-5. The signals required by POSIX. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
Process Management System Calls in Linux (2) Figure 10-6. Some system calls relating to processes. The return code s is −1 if an error has occurred, pid is a process ID, and residual is the remaining time in the previous alarm. The parameters are what the names suggest. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
Process Management System Calls in Linux (3) Figure 10-7. A highly simplified shell. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
Implementation of Processes and Threads in Linux (1) Categories of information in the process descriptor: Scheduling parameters Memory image Signals Machine registers. . . Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
Implementation of Processes and Threads in Linux (2) System call state File descriptor table Accounting Kernel stack Miscellaneous Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639
Threads in Linux (1) Figure 10-8. The steps in executing the commandls typed to the shell. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639