16 UNIX and Linux. Fig. 16.1: The shell and the kernel.

Slides:



Advertisements
Similar presentations
6/9/2015B.Ramamurthy1 Process Description and Control B.Ramamurthy.
Advertisements

Process Description and Control
11/15/2005Comp 120 Fall November Seven Classes to Go! Questions! VM and Making Programs Go.
Figure 2.8 Compiler phases Compiling. Figure 2.9 Object module Linking.
Page 1 Processes and Threads Chapter 2. Page 2 Processes The Process Model Multiprogramming of four programs Conceptual model of 4 independent, sequential.
Page 1 Processes and Threads Chapter Processes 2.2 Threads 2.3 Interprocess communication 2.4 Classical IPC problems 2.5 Scheduling.
1 What is a Process ? The activity of program execution. Also called a task or job Has associated with it: Code Data Resources A State An executing set.
Introduction to Kernel
Home: Phones OFF Please Unix Kernel Parminder Singh Kang Home:
CSCE 351: Operating System Kernels
Advanced OS Chapter 3p2 Sections 3.4 / 3.5. Interrupts These enable software to respond to signals from hardware. The set of instructions to be executed.
Operating Systems Processes (Ch 4.1). Processes “A program in execution” Modern computers allow several at once –“pseudoparallelism” A B C Program Counter.
1 Process Description and Control Chapter 3 = Why process? = What is a process? = How to represent processes? = How to control processes?
1 I/O Management in Representative Operating Systems.
Process Description and Control A process is sometimes called a task, it is a program in execution.
CSE 451: Operating Systems Autumn 2013 Module 6 Review of Processes, Kernel Threads, User-Level Threads Ed Lazowska 570 Allen.
Chapter 3 Operating Systems Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Segmentation & O/S Input/Output Chapter 4 & 5 Tuesday, April 3, 2007.
Introduction to Operating Systems Chapter 1. cs431 -cotter2 Lecture Objectives Understand the relationship between computing hardware, operating system,
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 and by appointment.
Chapter 3 Process Description and Control
Chapter 1 Introduction 1.1 What is an operating system
The Structure of Processes (Chap 6 in the book “The Design of the UNIX Operating System”)
Lecture 3 Process Concepts. What is a Process? A process is the dynamic execution context of an executing program. Several processes may run concurrently,
6 Memory Management and Processor Management Management of Resources Measure of Effectiveness – On most modern computers, the operating system serves.
Mid Term review CSC345.
LINUX System : Lecture 7 Bong-Soo Sohn Lecture notes acknowledgement : The design of UNIX Operating System.
8-Sep Operating Systems Yasir Kiani. 8-Sep Agenda for Today Review of previous lecture Process scheduling concepts Process creation and termination.
Silberschatz, Galvin and Gagne  Operating System Concepts Process Concept An operating system executes a variety of programs:  Batch system.
Processes CS 6560: Operating Systems Design. 2 Von Neuman Model Both text (program) and data reside in memory Execution cycle Fetch instruction Decode.
We will focus on operating system concepts What does it do? How is it implemented? Apply to Windows, Linux, Unix, Solaris, Mac OS X. Will discuss differences.
Operating Systems 1 K. Salah Module 1.2: Fundamental Concepts Interrupts System Calls.
Linux API Dr. Michael L. Collard 1.
Device Driver Concepts Digital UNIX Internals II Device Driver Concepts Chapter 13.
What is an Operating System? Various systems and their pros and cons –E.g. multi-tasking vs. Batch OS definitions –Resource allocator –Control program.
1 Process Description and Control Chapter 3. 2 Process A program in execution An instance of a program running on a computer The entity that can be assigned.
Introduction Contain two or more CPU share common memory and peripherals. Provide greater system throughput. Multiple processor executing simultaneous.
Processes and Threads Chapter 3 and 4 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Introduction to Operating Systems Concepts
Introduction to Kernel
Process Management Process Concept Why only the global variables?
Chapter 9: Virtual Memory
Structure of Processes
Chapter 3 – Process Concepts
Structure of Processes
Module 2.2 COP4600 – Operating Systems Richard Newman
Operating Systems Lecture November 2018.
Operating Systems Lecture 6.
Process & its States Lecture 5.
Mid Term review CSC345.
Process Description and Control
Operating Systems Processes (Ch 4.1).
Process Description and Control
Process Control B.Ramamurthy 2/22/2019 B.Ramamurthy.
Process Description and Control
Process Description and Control
LINUX System : Lecture 7 Lecture notes acknowledgement : The design of UNIX Operating System.
CS149D Elements of Computer Science
Unix Process Control B.Ramamurthy 4/11/2019 B.Ramamurthy.
Chapter 2 Processes and Threads 2.1 Processes 2.2 Threads
CS510 Operating System Foundations
Process Description and Control
Process Description and Control
Process Description and Control in Unix
Process Description and Control in Unix
Chapter 1: Introduction CSS503 Systems Programming
Structure of Processes
Mr. M. D. Jamadar Assistant Professor
Operating Systems Processes (Ch 2.1).
LINUX System : Lecture 6 Bong-Soo Sohn
Presentation transcript:

16 UNIX and Linux

Fig. 16.1: The shell and the kernel.

Images and Processes Image –an execution environment –the pseudo-computer concept –components text segment data segment stack segment Process –the execution of an image

Fig. 16.2: An image.

Fig. 16.3: The text segment is reentrant. The data and stack segments are private.

Process Creation Fig. 16.4a: The parent calls fork.

Fig. 16.4b: the child calls exec.

Fig. 16.4c: exec overlays the child’s text and data segments.

Fig. 16.4d: When the child dies, the parent resumes processing.

Fig. 16.5: The possible contents of memory on a system supporting four concurrent users.

Fig. 16.6: The process table contains one entry per process.

Events and Signals Event generated by death of a process Event produces signal event-wait routine activated –awaken all processes waiting for event –start highest priority ready process

Time-slicing and Interrupts Time-slicing –programs limited to a single time slice –exceeding time slice generates an event –event-wait starts highest priority process Interrupts –interrupt handling routines in kernel

Fig. 16.7: The swapping process is part of the kernel.

Fig. 16.8: A text table.

The File System Data treated as strings of bytes Device types –block devices hold files –character devices File types –ordinary files –special files

Fig. 16.9: A configuration table lists all the device drivers.

Fig : A UNIX disk is divided into four regions.

Fig : Associated with the file name is an i-number that points to a specific i-node.

Fig : The process file table points to the system file table, which points to the file on disk.

The Buffer Pool All block I/O through buffer pool Read implies a buffer search Write –mark appropriate buffer dirty –transfer to disk when buffer reassigned Physical I/O asynchronous

Fig : A summary of key UNIX system tables.

Linux The Linux kernel –deals directly with hardware –load/unload specific modules Linux processes –call fork or clone to create –personality identifier The Linux file system (ex2fs) –virtual file system (VFS)

Fig : The virtual file system allows processes to access all file systems uniformly.