Introduction to Operating Systems (Part III)

Size: px
Start display at page:

Download "Introduction to Operating Systems (Part III)"

Transcription

1 Introduction to Operating Systems (Part III) Amir H. Payberah Amirkabir University of Technology (Tehran Polytechnic) Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 1 / 43

2 Operating System Structure Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 2 / 43

3 Operating System Structure Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 3 / 43

4 User Space System programs Application programs Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 4 / 43

5 Kernel Space Process management Memory management Storage management and File system Device control and I/O subsystem Protection and security Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 5 / 43

6 System Calls Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 6 / 43

7 System Calls Programming interface to the services provided by the OS. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 7 / 43

8 System Calls Programming interface to the services provided by the OS. Typically written in a high-level language (C or C++). Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 7 / 43

9 System Calls Programming interface to the services provided by the OS. Typically written in a high-level language (C or C++). Mostly accessed by programs via a high-level Application Programming Interface (API) rather than direct system call use. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 7 / 43

10 Application Programming Interface (API) The API specifies a set of functions that are available to an application programmer. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 8 / 43

11 Application Programming Interface (API) The API specifies a set of functions that are available to an application programmer. It includes the parameters that are passed to each function and the return values the programmer can expect. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 8 / 43

12 Application Programming Interface (API) The API specifies a set of functions that are available to an application programmer. It includes the parameters that are passed to each function and the return values the programmer can expect. Three most common APIs: Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 8 / 43

13 Application Programming Interface (API) The API specifies a set of functions that are available to an application programmer. It includes the parameters that are passed to each function and the return values the programmer can expect. Three most common APIs: POSIX API for Unix, Linux, and Mac OS X Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 8 / 43

14 Application Programming Interface (API) The API specifies a set of functions that are available to an application programmer. It includes the parameters that are passed to each function and the return values the programmer can expect. Three most common APIs: POSIX API for Unix, Linux, and Mac OS X Win32 API for Windows Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 8 / 43

15 Application Programming Interface (API) The API specifies a set of functions that are available to an application programmer. It includes the parameters that are passed to each function and the return values the programmer can expect. Three most common APIs: POSIX API for Unix, Linux, and Mac OS X Win32 API for Windows Java API for the Java virtual machine (JVM) Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 8 / 43

16 Example of Standard API > man read READ(2) Linux Programmers Manual READ(2) NAME read - read from a file descriptor SYNOPSIS #include <unistd.h> ssize_t read(int fd, void *buf, size_t count); DESCRIPTION read() attempts to read up to count bytes from file descriptor fd into the buffer starting at buf. If count is zero, read() returns zero and has no other results. If count is greater than SSIZE_MAX, the result is unspecified. RETURN VALUE On success, the number of bytes read is returned (zero indicates end of file), and the file position is advanced by this number.... Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 9 / 43

17 Why would an application programmer prefer programming according to an API rather than invoking actual system calls? Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 10 / 43

18 API and System Calls > cp a.txt b.txt Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 11 / 43

19 API and System Calls > strace cp a.txt b.txt execve("/bin/cp", ["cp", "a.txt", "b.txt"], [/* 49 vars */]) = 0 brk(0) = 0x8a2d000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap2(null, 8192, PROT_READ PROT_WRITE, MAP_PRIVATE MAP_ANONYMOUS, -1, 0) = 0xb76ff000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY O_CLOEXEC) = 3 fstat64(3, {st_mode=s_ifreg 0644, st_size=108563,...}) = 0 mmap2(null, , PROT_READ, MAP_PRIVATE, 3, 0) = 0xb76e4000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/i386-linux-gnu/libselinux.so.1", O_RDONLY O_CLOEXEC) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@A\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=s_ifreg 0644, st_size=120748,...}) = 0 mmap2(null, , PROT_READ PROT_EXEC, MAP_PRIVATE MAP_DENYWRITE, 3, 0) = 0xb76c5000 mmap2(0xb76e2000, 8192, PROT_READ PROT_WRITE, MAP_PRIVATE MAP_FIXED MAP_DENYWRITE, 3, 0x1c) = 0xb76e2000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/i386-linux-gnu/librt.so.1", O_RDONLY O_CLOEXEC) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\30\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=s_ifreg 0644, st_size=30684,...}) = 0 mmap2(null, 33360, PROT_READ PROT_EXEC, MAP_PRIVATE MAP_DENYWRITE, 3, 0) = 0xb76bc000 mmap2(0xb76c3000, 8192, PROT_READ PROT_WRITE, MAP_PRIVATE MAP_FIXED MAP_DENYWRITE, 3, 0x6) = 0xb76c3000 close(3) = 0... Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 12 / 43

20 System Call Interface The system call interface intercepts function calls in the API and invokes the necessary system calls within the OS. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 13 / 43

21 System Calls Implementation (1/2) Typically, a number associated with each system call. [ Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 14 / 43

22 System Calls Implementation (1/2) Typically, a number associated with each system call. System-call interface maintains a table indexed according to these numbers. [ Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 14 / 43

23 System Calls Implementation (1/2) Typically, a number associated with each system call. System-call interface maintains a table indexed according to these numbers. The system call interface invokes the intended system call in OS kernel and returns status of the system call and any return values. [ Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 14 / 43

24 System Calls Implementation (2/2) The caller does not need to know about the system call implementation. [ Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 15 / 43

25 System Calls Implementation (2/2) The caller does not need to know about the system call implementation. Just needs to obey API and understand what OS will do as a result call. [ Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 15 / 43

26 System Calls Implementation (2/2) The caller does not need to know about the system call implementation. Just needs to obey API and understand what OS will do as a result call. Most details of OS interface hidden from programmer by API. [ Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 15 / 43

27 System Call Parameter Passing (1/2) Three general methods used to pass parameters to the OS. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 16 / 43

28 System Call Parameter Passing (1/2) Three general methods used to pass parameters to the OS. 1 Pass the parameters in registers. In some cases, may be more parameters than registers. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 16 / 43

29 System Call Parameter Passing (1/2) Three general methods used to pass parameters to the OS. 1 Pass the parameters in registers. In some cases, may be more parameters than registers. 2 Parameters stored in a block or table, in memory, and address of block passed as a parameter in a register. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 16 / 43

30 System Call Parameter Passing (1/2) Three general methods used to pass parameters to the OS. 1 Pass the parameters in registers. In some cases, may be more parameters than registers. 2 Parameters stored in a block or table, in memory, and address of block passed as a parameter in a register. 3 Parameters pushed onto the stack by the program and popped off the stack by the OS. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 16 / 43

31 System Call Parameter Passing (2/2) [Passing of parameters as a table] Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 17 / 43

32 Types of System Calls System calls can be grouped roughly into six major categories: 1 Process control 2 File manipulation 3 Device manipulation 4 Information maintenance 5 Communications 6 Protection Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 18 / 43

33 Process Control System Calls create process, terminate process Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 19 / 43

34 Process Control System Calls create process, terminate process end, abort Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 19 / 43

35 Process Control System Calls create process, terminate process end, abort load, execute Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 19 / 43

36 Process Control System Calls create process, terminate process end, abort load, execute get process attributes, set process attributes Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 19 / 43

37 Process Control System Calls create process, terminate process end, abort load, execute get process attributes, set process attributes wait for time Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 19 / 43

38 Process Control System Calls create process, terminate process end, abort load, execute get process attributes, set process attributes wait for time wait event, signal event Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 19 / 43

39 Process Control System Calls create process, terminate process end, abort load, execute get process attributes, set process attributes wait for time wait event, signal event allocate and free memory Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 19 / 43

40 File Management System Calls create file, delete file Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 20 / 43

41 File Management System Calls create file, delete file open, close Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 20 / 43

42 File Management System Calls create file, delete file open, close read, write, reposition Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 20 / 43

43 File Management System Calls create file, delete file open, close read, write, reposition get file attributes, set file attributes Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 20 / 43

44 Device Management System Calls request device, release device Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 21 / 43

45 Device Management System Calls request device, release device read, write, reposition Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 21 / 43

46 Device Management System Calls request device, release device read, write, reposition get device attributes, set device attributes Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 21 / 43

47 Information Management System Calls get/set time or date Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 22 / 43

48 Information Management System Calls get/set time or date get/set system data Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 22 / 43

49 Information Management System Calls get/set time or date get/set system data get/set process, file, or device attributes Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 22 / 43

50 Communications System Calls create, delete communication connection Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 23 / 43

51 Communications System Calls create, delete communication connection send, receive messages Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 23 / 43

52 Communications System Calls create, delete communication connection send, receive messages transfer status information Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 23 / 43

53 Communications System Calls create, delete communication connection send, receive messages transfer status information attach or detach remote devices Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 23 / 43

54 Operating System Architecture Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 24 / 43

55 Operating System Architecture (1/2) General-purpose OS is very large program. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 25 / 43

56 Operating System Architecture (1/2) General-purpose OS is very large program. A common approach is to partition the task into small components, rather than have one monolithic system. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 25 / 43

57 Operating System Architecture (1/2) General-purpose OS is very large program. A common approach is to partition the task into small components, rather than have one monolithic system. Each component should be a well-defined portion of the system, with carefully defined inputs, outputs, and functions. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 25 / 43

58 Operating System Architecture (2/2) Various ways to structure ones: Simple structure, e.g., MS-DOS More complex structure, e.g., Unix Layered, an abstraction Microkernel, e.g., Mach Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 26 / 43

59 Simple Structure Provide the most functionality in the least space. Not divided into modules. Its interfaces and levels of functionality are not well separated. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 27 / 43

60 More Complex Structure (1/2) the original Unix had limited structuring. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 28 / 43

61 More Complex Structure (1/2) the original Unix had limited structuring. The Unix consists of two separable parts: Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 28 / 43

62 More Complex Structure (1/2) the original Unix had limited structuring. The Unix consists of two separable parts: 1 Systems programs 2 The kernel Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 28 / 43

63 More Complex Structure (1/2) the original Unix had limited structuring. The Unix consists of two separable parts: 1 Systems programs 2 The kernel Everything below the system call interface and above the hardware. Provides the file system, CPU scheduling, memory management, and other operating-system functions; a large number of functions for one level. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 28 / 43

64 More Complex Structure (2/2) [Traditional Unix system structure] Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 29 / 43

65 Layered Structure The operating system is divided into a number of layers. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 30 / 43

66 Layered Structure The operating system is divided into a number of layers. Each layer is built on top of lower layers. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 30 / 43

67 Layered Structure The operating system is divided into a number of layers. Each layer is built on top of lower layers. The bottom layer is the hardware. The highest layer is the user interface. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 30 / 43

68 Layered Structure The operating system is divided into a number of layers. Each layer is built on top of lower layers. The bottom layer is the hardware. The highest layer is the user interface. Layers are selected such that each uses functions and services of only lower-level layers. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 30 / 43

69 Microkernel Structure (1/2) Moves as much from the kernel into user space. Communication takes place between user modules using message passing. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 31 / 43

70 Microkernel Structure (2/2) Advantages: Easier to extend a microkernel. Easier to port the OS to new architectures. More reliable (less code is running in kernel mode). More secure. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 32 / 43

71 Microkernel Structure (2/2) Advantages: Easier to extend a microkernel. Easier to port the OS to new architectures. More reliable (less code is running in kernel mode). More secure. Disadvantages: Performance overhead of user space to kernel space communication. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 32 / 43

72 Modules Many modern operating systems implement loadable kernel modules. Uses object-oriented approach. Each core component is separate. Each talks to the others over known interfaces. Each is loadable as needed within the kernel. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 33 / 43

73 Modules Many modern operating systems implement loadable kernel modules. Uses object-oriented approach. Each core component is separate. Each talks to the others over known interfaces. Each is loadable as needed within the kernel. Overall, similar to layers but with more flexible. Linux, Solaris,... Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 33 / 43

74 Hybrid Systems Most modern operating systems are actually not one pure model. Hybrid combines multiple approaches to address performance, security, usability needs. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 34 / 43

75 Hybrid Systems Most modern operating systems are actually not one pure model. Hybrid combines multiple approaches to address performance, security, usability needs. Linux and Solaris are monolithic, plus modular for dynamic loading of functionality. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 34 / 43

76 Hybrid Systems Most modern operating systems are actually not one pure model. Hybrid combines multiple approaches to address performance, security, usability needs. Linux and Solaris are monolithic, plus modular for dynamic loading of functionality. Windows mostly monolithic, plus microkernel for different subsystem personalities. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 34 / 43

77 Hybrid Systems Most modern operating systems are actually not one pure model. Hybrid combines multiple approaches to address performance, security, usability needs. Linux and Solaris are monolithic, plus modular for dynamic loading of functionality. Windows mostly monolithic, plus microkernel for different subsystem personalities. Apple Mac OS X kernel consists of Mach microkernel and BSD Unix parts, plus I/O kit and dynamically loadable modules Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 34 / 43

78 Operating System Design and Implementation Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 35 / 43

79 Operating System Design Goals The first problem in designing a system is to define goals and specifications. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 36 / 43

80 Operating System Design The design of the system will be affected by the choice of hardware and the type of system: batch time sharing single user/multiuser distributed real time... Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 37 / 43

81 Users Goals vs. System Goals User goals: OS should be convenient to use, easy to learn, reliable, safe, and fast. System goals: OS should be easy to design, implement, and maintain, as well as flexible, reliable, error-free, and efficient. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 38 / 43

82 How vs. What Separating policy from mechanism: Policy: what to do? Mechanism: how to do? Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 39 / 43

83 How vs. What Separating policy from mechanism: Policy: what to do? Mechanism: how to do? Mechanisms determine how to do something, policies decide what will be done. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 39 / 43

84 How vs. What Separating policy from mechanism: Policy: what to do? Mechanism: how to do? Mechanisms determine how to do something, policies decide what will be done. The separation of policy from mechanism allows maximum flexibility if policy decisions are to be changed later. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 39 / 43

85 Implementation Early OSes in assembly language. Then system programming languages like Algol, PL/1. Now C and C++. Actually usually a mix of languages: Lowest levels in assembly. Main body in C. Systems programs in C, C++, scripting languages, e.g., Python. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 40 / 43

86 Implementation Early OSes in assembly language. Then system programming languages like Algol, PL/1. Now C and C++. Actually usually a mix of languages: Lowest levels in assembly. Main body in C. Systems programs in C, C++, scripting languages, e.g., Python. More high-level language easier to port to other hardware, but slower. Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 40 / 43

87 Summary Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 41 / 43

88 Summary Operating-system structure: user-space, system calls, kernel-space Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 42 / 43

89 Summary Operating-system structure: user-space, system calls, kernel-space System calls: File manipulation Device manipulation Information maintenance Communications Protection Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 42 / 43

90 Summary Operating-system structure: user-space, system calls, kernel-space System calls: File manipulation Device manipulation Information maintenance Communications Protection Operating-system architecture: simple, layered, micro-kernel, hybrid Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 42 / 43

91 Questions? Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 43 / 43

Kernel Types Simple OS Examples System Calls. Operating Systems. Autumn CS4023

Kernel Types Simple OS Examples System Calls. Operating Systems. Autumn CS4023 Operating Systems Autumn 2017-2018 Outline 1 2 3 Types of 2.4, SGG The OS Kernel The kernel is the central component of an OS It has complete control over everything that occurs in the system Kernel overview

More information

Chapter 2. Operating-System Structures

Chapter 2. Operating-System Structures Chapter 2 Operating-System Structures 2.1 Chapter 2: Operating-System Structures Operating System Services User Operating System Interface System Calls Types of System Calls System Programs Operating System

More information

Operating-System Structures

Operating-System Structures Operating-System Structures Chapter 2 Operating System Services One set provides functions that are helpful to the user: User interface Program execution I/O operations File-system manipulation Communications

More information

CHAPTER 2: SYSTEM STRUCTURES. By I-Chen Lin Textbook: Operating System Concepts 9th Ed.

CHAPTER 2: SYSTEM STRUCTURES. By I-Chen Lin Textbook: Operating System Concepts 9th Ed. CHAPTER 2: SYSTEM STRUCTURES By I-Chen Lin Textbook: Operating System Concepts 9th Ed. Chapter 2: System Structures Operating System Services User Operating System Interface System Calls Types of System

More information

Chapter 2: Operating-System Structures

Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Operating System Services User Operating System Interface System Calls Types of System Calls System Programs Operating System

More information

Chapter 2: System Structures

Chapter 2: System Structures Chapter 2: System Structures Chapter 2: System Structures 2.1 Operating-System Services 2.2 User and Operating-System Interface 2.3 System Calls 2.4 Types of System Calls 2.5 System Programs 2.6 Operating-System

More information

Objectives. Chapter 2: Operating-System Structures. 2.1 Operating System Services

Objectives. Chapter 2: Operating-System Structures. 2.1 Operating System Services Objectives Chapter 2: Operating-System Structures To describe the services an operating system provides to users, processes, and other systems To discuss the various ways of structuring an operating system

More information

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edit9on

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edit9on Chapter 2: Operating-System Structures Operating System Concepts 9 th Edit9on Silberschatz, Galvin and Gagne 2013 Chapter 2: Operating-System Structures 1. Operating System Services 2. User Operating System

More information

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edition

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edition Chapter 2: Operating-System Structures Silberschatz, Galvin and Gagne 2013 Chapter 2: Operating-System Structures Operating System Services User Operating System Interface System Calls Types of System

More information

Operating System Services. User Services. System Operation Services. User Operating System Interface - CLI. A View of Operating System Services

Operating System Services. User Services. System Operation Services. User Operating System Interface - CLI. A View of Operating System Services Operating System Services One set of services for users The other set of services for system operations Operating Systems Structures Notice: This set of slides is based on the notes by Professor Perrone

More information

What are some common categories of system calls? What are common ways of structuring an OS? What are the principles behind OS design and

What are some common categories of system calls? What are common ways of structuring an OS? What are the principles behind OS design and What are the services provided by an OS? What are system calls? What are some common categories of system calls? What are the principles behind OS design and implementation? What are common ways of structuring

More information

Last Class: OS and Computer Architecture. Last Class: OS and Computer Architecture

Last Class: OS and Computer Architecture. Last Class: OS and Computer Architecture Last Class: OS and Computer Architecture System bus Network card CPU, memory, I/O devices, network card, system bus Lecture 4, page 1 Last Class: OS and Computer Architecture OS Service Protection Interrupts

More information

Debugging: Love It, Hate It Or Reverse It?

Debugging: Love It, Hate It Or Reverse It? Debugging: Love It, Hate It Or Reverse It? Debugging: Love It, Hate It Or Reverse It?. Julian Smith, co-founder and CTO, Undo. jsmith@undo.io http://undo.io/ Overview Testing. Debugging: Debugging with

More information

Chapter 2: Operating-System Structures. Operating System Concepts Essentials 8 th Edition

Chapter 2: Operating-System Structures. Operating System Concepts Essentials 8 th Edition Chapter 2: Operating-System Structures Operating System Concepts Essentials 8 th Edition Silberschatz, Galvin and Gagne 2011 Chapter 2: Operating-System Structures Operating System Services User Operating

More information

Lecture 2 Operating System Structures (chapter 2)

Lecture 2 Operating System Structures (chapter 2) Bilkent University Department of Computer Engineering CS342 Operating Systems Lecture 2 Operating System Structures (chapter 2) Dr. İbrahim Körpeoğlu http://www.cs.bilkent.edu.tr/~korpe 1 References The

More information

Chapter 2: System Structures

Chapter 2: System Structures Chapter 2: Operating System Structures Operating System Services System Calls Chapter 2: System Structures System Programs Operating System Design and Implementation Operating System Structure Virtual

More information

Chapter 2: Operating-System

Chapter 2: Operating-System Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Operating System Services! User Operating System Interface! System Calls! Types of System Calls! System Programs! Operating

More information

Chapter 2: System Structures. Operating System Concepts 9 th Edition

Chapter 2: System Structures. Operating System Concepts 9 th Edition Chapter 2: System Structures Silberschatz, Galvin and Gagne 2013 Chapter 2: System Structures Operating System Services User Operating System Interface System Calls Types of System Calls System Programs

More information

Chapter 2: Operating-System Structures. Operating System Concepts 8 th Edition

Chapter 2: Operating-System Structures. Operating System Concepts 8 th Edition Chapter 2: Operating-System Structures Operating System Concepts 8 th Edition Silberschatz, Galvin and Gagne 2009 Chapter 2: Operating-System Structures Different Services of Operating System. System Calls-

More information

Chapter 2: Operating-System Structures

Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Operating System Services User Operating System Interface System Calls (important!) Types of System Calls (important!) System

More information

Four Components of a Computer System

Four Components of a Computer System Four Components of a Computer System Operating System Concepts Essentials 2nd Edition 1.1 Silberschatz, Galvin and Gagne 2013 Operating System Definition OS is a resource allocator Manages all resources

More information

Operating System: Chap2 OS Structure. National Tsing-Hua University 2016, Fall Semester

Operating System: Chap2 OS Structure. National Tsing-Hua University 2016, Fall Semester Operating System: Chap2 OS Structure National Tsing-Hua University 2016, Fall Semester Outline OS Services OS-Application Interface OS Structure Chapter2 OS-Structure Operating System Concepts NTHU LSA

More information

Chapter 2: Operating-System Structures. Chapter 2: Operating-System Structures. Objectives. Operating System Services

Chapter 2: Operating-System Structures. Chapter 2: Operating-System Structures. Objectives. Operating System Services Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Operating System Services User Operating System Interface System Calls Types of System Calls System Programs Operating System

More information

CSE 4/521 Introduction to Operating Systems

CSE 4/521 Introduction to Operating Systems CSE 4/521 Introduction to Operating Systems Lecture 3 Operating Systems Structures (Operating-System Services, User and Operating-System Interface, System Calls, Types of System Calls, System Programs,

More information

Chapter 2: Operating-System Structures

Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures 2.1 Silberschatz, Galvin and Gagne 2009 Chapter 2: Operating-System Structures Operating System Services User Operating System Interface System Calls Types of System

More information

Chapter 2 Operating-System Structures

Chapter 2 Operating-System Structures This chapter will discuss the following concepts: 2.1 Operating System Services 2.2 User Operating System Interface 2.3 System Calls 2.4 System Programs 2.5 Operating System Design and Implementation 2.6

More information

Operating Systems. Designed and Presented by Dr. Ayman Elshenawy Elsefy

Operating Systems. Designed and Presented by Dr. Ayman Elshenawy Elsefy Operating Systems Designed and Presented by Dr. Ayman Elshenawy Elsefy Dept. of Systems & Computer Eng.. AL-AZHAR University Website : eaymanelshenawy.wordpress.com Email : eaymanelshenawy@yahoo.com Reference

More information

Inside ptmalloc2. Peng Xu Sep 14, 2013

Inside ptmalloc2. Peng Xu Sep 14, 2013 Inside ptmalloc2 Peng Xu peng.p.xu@ericsson.com Sep 14, 2013 Part I basic concept and data structure Memory Translation process memory layout kernel space command line and environment variables stack heap

More information

Chapter 2: Operating-System Structures

Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Silberschatz, Galvin and Gagne 2009 Chapter 2: Operating-System Structures Operating System Services User Operating System Interface System Calls Types of System

More information

DEBUGGING: TESTING WS 2017/2018. Martina Seidl Institute for Formal Models and Verification

DEBUGGING: TESTING WS 2017/2018. Martina Seidl Institute for Formal Models and Verification DEBUGGING: TESTING WS 2017/2018 Martina Seidl Institute for Formal Models and Verification Testing is a Huge Field... 1/42 Costs of Defective Software 2/42 Testing Testing is the execution of a program

More information

Chapter 2: Operating-System Structures

Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Operating System Services User Operating System Interface System Calls Types of System Calls System Programs Operating System

More information

Often, more information is required when designing system call Information varies according to OS and types of system call

Often, more information is required when designing system call Information varies according to OS and types of system call System Call Parameter Passing Often, more information is required when designing system call Information varies according to OS and types of system call Three general methods used to pass parameters to

More information

Operating-System Structures

Operating-System Structures Recap Chapter 2: Operating-System Structures Presented By: Dr. El-Sayed M. El-Alfy Note: Most of the slides are compiled from the textbook and its complementary resources From: OS by Tanenbaum, 2008 March

More information

CS420: Operating Systems. OS Services & System Calls

CS420: Operating Systems. OS Services & System Calls OS Services & System Calls James Moscola Department of Engineering & Computer Science York College of Pennsylvania Based on Operating System Concepts, 9th Edition by Silberschatz, Galvin, Gagne Operating

More information

The Slide does not contain all the information and cannot be treated as a study material for Operating System. Please refer the text book for exams.

The Slide does not contain all the information and cannot be treated as a study material for Operating System. Please refer the text book for exams. The Slide does not contain all the information and cannot be treated as a study material for Operating System. Please refer the text book for exams. Operating System Services User Operating System Interface

More information

CSC Operating Systems Spring Lecture - II OS Structures. Tevfik Ko!ar. Louisiana State University. January 17 th, 2007.

CSC Operating Systems Spring Lecture - II OS Structures. Tevfik Ko!ar. Louisiana State University. January 17 th, 2007. CSC 4103 - Operating Systems Spring 2008 Lecture - II OS Structures Tevfik Ko!ar Louisiana State University January 17 th, 2007 1 Announcements Teaching Assistant: Asim Shrestrah Email: ashres1@lsu.edu

More information

Announcements. Operating System Structure. Roadmap. Operating System Structure. Multitasking Example. Tevfik Ko!ar

Announcements. Operating System Structure. Roadmap. Operating System Structure. Multitasking Example. Tevfik Ko!ar CSC 4103 - Operating Systems Spring 2008 Lecture - II OS Structures Tevfik Ko!ar Teaching Assistant: Asim Shrestrah Email: ashres1@lsu.edu Announcements All of you should be now in the class mailing list.

More information

Operating System Structure

Operating System Structure Operating System Structure Heechul Yun Disclaimer: some slides are adopted from the book authors slides with permission Recap: Memory Hierarchy Fast, Expensive Slow, Inexpensive 2 Recap Architectural support

More information

TDDI04, K. Arvidsson, IDA, Linköpings universitet Operating System Structures. Operating System Structures Overview. Operating System Services

TDDI04, K. Arvidsson, IDA, Linköpings universitet Operating System Structures. Operating System Structures Overview. Operating System Services TDDI04 Concurrent Programming, Operating Systems, and Real-time Operating Systems Operating System Structures [SGG7] Chapter 2 Copyright Notice: The lecture notes are mainly based on Silberschatz s, Galvin

More information

CS307: Operating Systems

CS307: Operating Systems CS307: Operating Systems Chentao Wu 吴晨涛 Associate Professor Dept. of Computer Science and Engineering Shanghai Jiao Tong University SEIEE Building 3-513 wuct@cs.sjtu.edu.cn Download Lectures ftp://public.sjtu.edu.cn

More information

Operating System Structure

Operating System Structure Operating System Structure Heechul Yun Disclaimer: some slides are adopted from the book authors slides with permission Recap OS needs to understand architecture Hardware (CPU, memory, disk) trends and

More information

Operating-System Structures

Operating-System Structures Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System Design and Implementation System Generation 3.1 Sana a University,

More information

CHIRP - Bug # Baofeng 997-S - CHIRP - No Response Issue Description. I have reviewed redmine ticket 1957 and the rejected ticket 2471

CHIRP - Bug # Baofeng 997-S - CHIRP - No Response Issue Description. I have reviewed redmine ticket 1957 and the rejected ticket 2471 CHIRP - Bug # 3173 Status: Feedback Priority: Normal Author: John J Category: Created: 01/16/2016 Assignee: Updated: 01/20/2016 Due date: Chirp Version: daily Model affected: 997-S Platform: Linux Subject:

More information

Chapter 2: System Structures. Operating System Concepts 9 th Edition

Chapter 2: System Structures. Operating System Concepts 9 th Edition Chapter 2: System Structures Silberschatz, Galvin and Gagne 2013 Chapter 2: System Structures Operating System Services User Operating System Interface System Calls Types of System Calls System Programs

More information

Operating System Architecture. CS3026 Operating Systems Lecture 03

Operating System Architecture. CS3026 Operating Systems Lecture 03 Operating System Architecture CS3026 Operating Systems Lecture 03 The Role of an Operating System Service provider Provide a set of services to system users Resource allocator Exploit the hardware resources

More information

OPERATING SYSTEMS. Prescribed Text Book Operating System Principles, Seventh Edition By Abraham Silberschatz, Peter Baer Galvin and Greg Gagne

OPERATING SYSTEMS. Prescribed Text Book Operating System Principles, Seventh Edition By Abraham Silberschatz, Peter Baer Galvin and Greg Gagne OPERATING SYSTEMS Prescribed Text Book Operating System Principles, Seventh Edition By Abraham Silberschatz, Peter Baer Galvin and Greg Gagne OVERVIEW An operating system is a program that manages the

More information

Operating System Structure

Operating System Structure CSE325 Principles of Operating Systems Operating System Structure David Duggan dduggan@sandia.gov January 24, 2013 A View of Operating System Services 1/24/13 CSE325 - OS Structure 2 Operating System Design

More information

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edit9on

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edit9on Chapter 2: Operating-System Structures Operating System Concepts 9 th Edit9on Silberschatz, Galvin and Gagne 2013 Objectives To describe the services an operating system provides to users, processes, and

More information

Architectural Support for Operating Systems. Jinkyu Jeong ( Computer Systems Laboratory Sungkyunkwan University

Architectural Support for Operating Systems. Jinkyu Jeong ( Computer Systems Laboratory Sungkyunkwan University Architectural Support for Operating Systems Jinkyu Jeong ( jinkyu@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu Today s Topics Basic services of OS Basic computer system

More information

CSE 333 Lecture 8 - system calls, intro to file I/O

CSE 333 Lecture 8 - system calls, intro to file I/O CSE 333 Lecture 8 - system calls, intro to file I/O Steve Gribble Department of Computer Science & Engineering University of Washington A question from last lecture If you use the static specifier to declare

More information

CSE 333 Lecture 6 - system calls, intro to file I/O

CSE 333 Lecture 6 - system calls, intro to file I/O CSE 333 Lecture 6 - system calls, intro to file I/O Hal Perkins Department of Computer Science & Engineering University of Washington Administrivia New exercise posted this morning, due before class Fri.

More information

OS Design Approaches. Roadmap. OS Design Approaches. Tevfik Koşar. Operating System Design and Implementation

OS Design Approaches. Roadmap. OS Design Approaches. Tevfik Koşar. Operating System Design and Implementation CSE 421/521 - Operating Systems Fall 2012 Lecture - II OS Structures Roadmap OS Design and Implementation Different Design Approaches Major OS Components!! Memory management! CPU Scheduling! I/O Management

More information

EECS 3221 Operating System Fundamentals

EECS 3221 Operating System Fundamentals General Info EECS 3221 Operating System Fundamentals Instructor: Prof. Hui Jiang Email: hj@cse.yorku.ca Web: http://www.eecs.yorku.ca/course/3221 3 lecture hours each week 2 assignments (2*5%=10%) 1 project

More information

EECS 3221 Operating System Fundamentals

EECS 3221 Operating System Fundamentals EECS 3221 Operating System Fundamentals Instructor: Prof. Hui Jiang Email: hj@cse.yorku.ca Web: http://www.eecs.yorku.ca/course/3221 General Info 3 lecture hours each week 2 assignments (2*5%=10%) 1 project

More information

CSC Operating Systems Fall Lecture - II OS Structures. Tevfik Ko!ar. Louisiana State University. August 27 th, 2009.

CSC Operating Systems Fall Lecture - II OS Structures. Tevfik Ko!ar. Louisiana State University. August 27 th, 2009. CSC 4103 - Operating Systems Fall 2009 Lecture - II OS Structures Tevfik Ko!ar Louisiana State University August 27 th, 2009 1 Announcements TA Changed. New TA: Praveenkumar Kondikoppa Email: pkondi1@lsu.edu

More information

Announcements. Computer System Organization. Roadmap. Major OS Components. Processes. Tevfik Ko!ar. CSC Operating Systems Fall 2009

Announcements. Computer System Organization. Roadmap. Major OS Components. Processes. Tevfik Ko!ar. CSC Operating Systems Fall 2009 CSC 4103 - Operating Systems Fall 2009 Lecture - II OS Structures Tevfik Ko!ar TA Changed. New TA: Praveenkumar Kondikoppa Email: pkondi1@lsu.edu Announcements All of you should be now in the class mailing

More information

Module 3: Operating-System Structures. Common System Components

Module 3: Operating-System Structures. Common System Components Module 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System Design and Implementation System Generation 3.1 Common

More information

C provides some basic facilities C libraries help make those primitive facilities useful

C provides some basic facilities C libraries help make those primitive facilities useful Guessing Game C provides some basic facilities C libraries help make those primitive facilities useful For each routine prototype that follows, guess how to use it: What are the arguments? What is the

More information

Chapter 3: Operating-System Structures

Chapter 3: Operating-System Structures Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System Design and Implementation System Generation 3.1

More information

Module 1 Introduction/OS Overview

Module 1 Introduction/OS Overview Module 1 Introduction/OS Overview Reading: Chapter 1 and 2 (Silberchatz) Objective: Quick overview of computer system organization the processor (CPU), memory, and input/output, architecture and general

More information

Low-Level I/O, C++ Preview

Low-Level I/O, C++ Preview Low-Level I/O, C++ Preview CSE 333 Spring 2018 Instructor: Justin Hsia Teaching Assistants: Danny Allen Dennis Shao Eddie Huang Kevin Bi Jack Xu Matthew Neldam Michael Poulain Renshu Gu Robby Marver Waylon

More information

Chapter 3: Operating-System Structures

Chapter 3: Operating-System Structures Chapter 3: Operating-System Structures System Components Operating System Services System Calls POSIX System Programs System Structure Virtual Machines System Design and Implementation System Generation

More information

Chapter 2 Operating System Structures

Chapter 2 Operating System Structures Chapter 2 Operating System Structures Operating System Concepts 8 th Edition, Silberschatz, Galvin and Gagne 2009 / Enhancements by Alan Today s Objectives To describe the services an operating system

More information

Chapter 2: OS Structures

Chapter 2: OS Structures Chapter 2: OS Structures OS Structures 1 Operating System Services (1) One set of operating-system services provides functions that are helpful to the user (or user processes): User interface - almost

More information

Chapter 2. Operating System Structures

Chapter 2. Operating System Structures Chapter 2 Operating System Structures Contents Operating System Services User Operating System Interface System Calls Types of System Calls System Programs Operating System Design and Implementation Operating

More information

CS370 Operating Systems

CS370 Operating Systems CS370 Operating Systems Colorado State University Yashwant K Malaiya Fall 2016 Lecture 5 Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 User Operating System Interface - CLI CLI

More information

Operating Systems. Operating System Structure. Lecture 2 Michael O Boyle

Operating Systems. Operating System Structure. Lecture 2 Michael O Boyle Operating Systems Operating System Structure Lecture 2 Michael O Boyle 1 Overview Architecture impact User operating interaction User vs kernel Syscall Operating System structure Layers Examples 2 Lower-level

More information

Roadmap. Tevfik Koşar. CSE 421/521 - Operating Systems Fall Lecture - II OS Structures. University at Buffalo. OS Design and Implementation

Roadmap. Tevfik Koşar. CSE 421/521 - Operating Systems Fall Lecture - II OS Structures. University at Buffalo. OS Design and Implementation CSE 421/521 - Operating Systems Fall 2013 Lecture - II OS Structures Tevfik Koşar University at Buffalo August 29 th, 2013 1 Roadmap OS Design and Implementation Different Design Approaches Major OS Components!

More information

OS Design Approaches. Roadmap. System Calls. Tevfik Koşar. Operating System Design and Implementation. CSE 421/521 - Operating Systems Fall 2013

OS Design Approaches. Roadmap. System Calls. Tevfik Koşar. Operating System Design and Implementation. CSE 421/521 - Operating Systems Fall 2013 CSE 421/521 - Operating Systems Fall 2013 Lecture - II OS Structures Roadmap OS Design and Implementation Different Design Approaches Major OS Components!! Memory management! CPU Scheduling! I/O Management

More information

OS Structures. ICS332 Operating Systems

OS Structures. ICS332 Operating Systems OS Structures ICS332 Operating Systems OS Services and Features OS Services and Features Helpful to users Better efficiency/operation OS Services Load and run a program Allow a program to end in multiple

More information

OS and Computer Architecture. Chapter 3: Operating-System Structures. Common System Components. Process Management

OS and Computer Architecture. Chapter 3: Operating-System Structures. Common System Components. Process Management Last class: OS and Architecture OS and Computer Architecture OS Service Protection Interrupts System Calls IO Scheduling Synchronization Virtual Memory Hardware Support Kernel/User Mode Protected Instructions

More information

Module 3: Operating-System Structures

Module 3: Operating-System Structures Module 3: Operating-System Structures System Components Operating-System Services System Calls System Programs System Structure Virtual Machines System Design and Implementation System Generation Operating

More information

System Call. Preview. System Call. System Call. System Call 9/7/2018

System Call. Preview. System Call. System Call. System Call 9/7/2018 Preview Operating System Structure Monolithic Layered System Microkernel Virtual Machine Process Management Process Models Process Creation Process Termination Process State Process Implementation Operating

More information

CSC 453 Operating Systems

CSC 453 Operating Systems CSC 453 Operating Systems Lecture 3: Operating-System Structures Operating System Components Operating systems are large and complex - the only way to manage such a project is to divide it into smaller

More information

Operating System Services

Operating System Services CSE325 Principles of Operating Systems Operating System Services David Duggan dduggan@sandia.gov January 22, 2013 Reading Assignment 3 Chapter 3, due 01/29 1/23/13 CSE325 - OS Services 2 What Categories

More information

Spring It takes a really bad school to ruin a good student and a really fantastic school to rescue a bad student. Dennis J.

Spring It takes a really bad school to ruin a good student and a really fantastic school to rescue a bad student. Dennis J. Operating Systems * *Throughout the course we will use overheads that were adapted from those distributed from the textbook website. Slides are from the book authors, modified and selected by Jean Mayo,

More information

Introduction to Operating Systems (Part II)

Introduction to Operating Systems (Part II) Introduction to Operating Systems (Part II) Amir H. Payberah amir@sics.se Amirkabir University of Technology (Tehran Polytechnic) Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/24 1 / 45 Computer

More information

OS concepts and structure. q OS components & interconnects q Structuring OSs q Next time: Processes

OS concepts and structure. q OS components & interconnects q Structuring OSs q Next time: Processes OS concepts and structure q OS components & interconnects q Structuring OSs q Next time: Processes OS Views Perspectives, OS as the services it provides its components and interactions Services to Users

More information

Lecture 2 - Fundamental Concepts

Lecture 2 - Fundamental Concepts Lecture 2 - Fundamental Concepts Instructor : Bibhas Ghoshal (bibhas.ghoshal@iiita.ac.in) Autumn Semester, 2015 Bibhas Ghoshal IOSY 332C & IOPS 332C: OS Autumn Semester, 2015 1 / 43 Lecture Outline Operating

More information

System Call System Program Linker/Loader with Examples Types of computing Environment

System Call System Program Linker/Loader with Examples Types of computing Environment CS341: Operating System Lect06 : 13 th Aug 2014 System Program Linker/Loader with Examples Types of computing Environment Dr A Sahu Dept of Comp Sc & Engg Indian Institute of Technology Guwahati 1 2 OS

More information

Last class: OS and Architecture. OS and Computer Architecture

Last class: OS and Architecture. OS and Computer Architecture Last class: OS and Architecture OS and Computer Architecture OS Service Protection Interrupts System Calls IO Scheduling Synchronization Virtual Memory Hardware Support Kernel/User Mode Protected Instructions

More information

Last class: OS and Architecture. Chapter 3: Operating-System Structures. OS and Computer Architecture. Common System Components

Last class: OS and Architecture. Chapter 3: Operating-System Structures. OS and Computer Architecture. Common System Components Last class: OS and Architecture Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System Design and Implementation

More information

Operating-System Structures

Operating-System Structures Operating-System Structures System Components Operating System Services System Calls System Programs System Structure System Design and Implementation System Generation 1 Common System Components Process

More information

What we saw. Desarrollo de Aplicaciones en Red. 1. OS Design. 2. Service description. 1.1 Operating System Service (1)

What we saw. Desarrollo de Aplicaciones en Red. 1. OS Design. 2. Service description. 1.1 Operating System Service (1) What we saw Desarrollo de Aplicaciones en Red José Rafael Rojano Cáceres http://www.uv.mx/rrojano Distributed system: Collection of independent computers that for the user works like if it where one CPU.

More information

CSE Opera+ng System Principles

CSE Opera+ng System Principles CSE 30341 Opera+ng System Principles Lecture 3 Systems Structure Project 1 Intro CSE 30341 Opera+ng System Principles 2 1 Recap Last Lecture I/O Structure (I/O Interface, DMA) Storage and Memory Hierarchy

More information

Full file at

Full file at Import Settings: Base Settings: Brownstone Default Highest Answer Letter: D Multiple Keywords in Same Paragraph: No Chapter: Chapter 2 Multiple Choice 1. A is an example of a systems program. A) command

More information

Chapter 3: Operating-System Structures

Chapter 3: Operating-System Structures 1 Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System Design and Implementation System Generation 3.1

More information

Ricardo Rocha. Department of Computer Science Faculty of Sciences University of Porto

Ricardo Rocha. Department of Computer Science Faculty of Sciences University of Porto Ricardo Rocha Department of Computer Science Faculty of Sciences University of Porto Slides based on the book Operating System Concepts, 9th Edition, Abraham Silberschatz, Peter B. Galvin and Greg Gagne,

More information

! Software ( kernel ) that runs at all times. ! OS performs two unrelated functions: Maria Hybinette, UGA. user! 1! Maria Hybinette, UGA. user! n!

! Software ( kernel ) that runs at all times. ! OS performs two unrelated functions: Maria Hybinette, UGA. user! 1! Maria Hybinette, UGA. user! n! Review: What is An Operating System?! Software ( ) that runs at all times CSCI 6730 / 4730 Operating Systems Structures & System Design» Really, the part of the that runs in (or need to).» But note - there

More information

Lecture Topics. Announcements. Today: Operating System Overview (Stallings, chapter , ) Next: Processes (Stallings, chapter

Lecture Topics. Announcements. Today: Operating System Overview (Stallings, chapter , ) Next: Processes (Stallings, chapter Lecture Topics Today: Operating System Overview (Stallings, chapter 2.1-2.4, 2.8-2.10) Next: Processes (Stallings, chapter 3.1-3.6) 1 Announcements Consulting hours posted Self-Study Exercise #3 posted

More information

OS Structure. Kevin Webb Swarthmore College January 25, Relevant xkcd:

OS Structure. Kevin Webb Swarthmore College January 25, Relevant xkcd: OS Structure Kevin Webb Swarthmore College January 25, 2018 Relevant xkcd: One of the survivors, poking around in the ruins with the point of a spear, uncovers a singed photo of Richard Stallman. They

More information

EEE 435 Principles of Operating Systems

EEE 435 Principles of Operating Systems EEE 435 Principles of Operating Systems Operating System Structure (Modern Operating Systems 1.7) Outline Operating System Structure Monolithic Systems Layered Systems Virtual Machines Exokernels Client-Server

More information

TDDB68 Concurrent Programming and Operating Systems. Lecture 1: Introduction, interrupts and system calls

TDDB68 Concurrent Programming and Operating Systems. Lecture 1: Introduction, interrupts and system calls TDDB68 Concurrent Programming and Operating Systems Lecture 1: Introduction, interrupts and system calls Mikael Asplund, Senior Lecturer Real-time Systems Laboratory Department of Computer and Information

More information

Operating- System Structures

Operating- System Structures Operating- System Structures 2 CHAPTER Practice Exercises 2.1 What is the purpose of system calls? Answer: System calls allow user-level processes to request services of the operating system. 2.2 What

More information

COS 318: Operating Systems

COS 318: Operating Systems COS 318: Operating Systems OS Structures and System Calls Prof. Margaret Martonosi Computer Science Department Princeton University http://www.cs.princeton.edu/courses/archive/fall11/cos318/ Outline Protection

More information

Unit 2 : Computer and Operating System Structure

Unit 2 : Computer and Operating System Structure Unit 2 : Computer and Operating System Structure Lesson 1 : Interrupts and I/O Structure 1.1. Learning Objectives On completion of this lesson you will know : what interrupt is the causes of occurring

More information

UNIT 2. OPERATING SYSTEM STRUCTURES

UNIT 2. OPERATING SYSTEM STRUCTURES This document can be downloaded from www.chetanahegde.in with most recent updates. 1 UNIT 2. OPERATING SYSTEM STRUCTURES 2.1 INTRODUCTION An OS provides the environment within which the programs are executed.

More information

1 System & Activities

1 System & Activities 1 System & Activities Gerd Liefländer 23. April 2009 System Architecture Group 2009 Universität Karlsruhe (TU), System Architecture Group 1 Roadmap for Today & Next Week System Structure System Calls (Java)

More information

OPERATING SYSTEMS UNIT - 1

OPERATING SYSTEMS UNIT - 1 OPERATING SYSTEMS UNIT - 1 Syllabus UNIT I FUNDAMENTALS Introduction: Mainframe systems Desktop Systems Multiprocessor Systems Distributed Systems Clustered Systems Real Time Systems Handheld Systems -

More information

Operating Systems, Fall

Operating Systems, Fall Material Operating Systems Fall 2008 Course book: A.S. Tanenbaum, Modern Operating Systems, 3rd. ed.,, Prentice-Hall, 2007 Any other large OS book, f.e. Stallings, Silbershatz, or Deitel, should be feasible

More information