Basics of Operating Systems

System calls, Single user, Multiuser OS
  Structure



• HOME     PREVIOUS TOPIC NEXT
• PREVIOUS QUESTION PAPERS FOR OS
• CPP TUTORIALS




                                          1
Recap


In the last class, you have learnt
• Operating System Services




                                     2
Objectives

On completion of this period, you would be able to
  know
• Definition of system call
• Types of system calls
• Single user operating system structure
• Multi user operating system structure



                                               3
System calls

• User writes a program for a specific purpose,
  using a specific language
• The program that is written uses the
  hardware as an aid to accomplish the task
• The kernel ( part of operating system and
  considered as heart of operating system )
  controls and streamlines the access to the
  hardware
                                                  4
System calls

• The applications that a user writes normally
  run on top of an operating system
• In most operating systems, a program cannot
  access the resources directly
• The programs run by the user, request the
  operating system to do a specific task on
  behalf of a program
                                                 5
System calls
• For example, if the program wants to open a file, it
  request the operating system to “please open the
  file with file name” “/usr/read.txt”
• The kernel replies to the request suitably
• It opens the file if the calling application has
  permissions
• If the application does not have permissions, the
  operating system simply ignores the request, giving
  back an error
                                                     6
System calls

• The process of calling the kernel is referred to as
  system call invocation
• Call to the kernel “please open the file” is known
  as a system call
• The kernel calls appropriate device drivers to
  access the hardware
• Figure (1) in next slide shows working of a system
  call
                                                    7
User program


                 System call


Kernel has control over
 Hardware resources


                 Device driver


        Device


  Fig(1) System Call
                                 8
Definition of System Call

• System call can be defined as a method by
  which a program makes a request to the
  operating system



• There are different system calls for performing
  different kinds of tasks


                                                9
Types of System Calls
Process control
• end, abort
• load, execute
• create process, terminate process
• get process attributes, set process attributes
• wait for time
• wait event, signal event
• allocate and free memory



                                                   10
File Management

• create file, delete file

• open, close

• read, write, reposition

• get file attributes, set file attributes




                                             11
Device Management

• request device, release device

• read, write, reposition

• get device attributes, set device attributes

• logically attach or detach devices



                                                 12
Information Maintenance

• get time or date, set time or date

• get system data, set system data

• get process, file or device attributes

• set process, file or device attributes



                                           13
Communications

• create, delete communication connection

• send, receive messages

• transfer status information

• attach or detach remote devices



                                            14
Operating System Structure
• Operating system is a large and complex program
• It has to be designed carefully so that it will function normally
  and can be modified easily
• Generally operating system will not be implemented as a
  single system
• Operating System will be divided into number of modules
• Each module will occupy some portion of the system
• Each module will have set of inputs, outputs and definite
  tasks to perform. The module may take assistance of other
  modules for performing the tasks
                                                            15
Operating System Structure

• The structure of an operating system is dictated by
  the model employed in building them
• An operating system model is a broad frame work
  that unifies many features and services
• Operating systems are broadly classified into two
  categories based on their structure
  – Monolithic operating system
  – Layered operating system

                                                  16
Monolithic Operating System ( Single User )
• The components of monolithic operating system
  are organized randomly and any module can call
  any other module
• The applications in the monolithic operating system
  are separated from the operating system itself
• Operating System code runs in privileged mode
  (kernel mode) with access to system data and to
  the hardware
                                                   17
Monolithic Operating System ( single user )

• Applications runs in non privileged mode (called user
  mode) With a limited set of interfaces available with
  limited access to the system data
• The monolithic operating system structure with
  separate user and kernel processor is shown in the
  Fig (2) in next slide



                                                   18
Application                    Application
                 program                        program      User mode

                                                             Kernel mode
                              System service
OS Procedures




                                Hardware
                     Fig:2 Monolithic operating system
                                                                  19
Layered Operating System ( Multiuser )
• The components of layered operating system are organized
  into modules and layers are placed on top of one another
• Each module provide a set of functions that other module
  can call
• Interface functions at any particular level can invoke
  services provided by lower layers but not the other way
  round
• The layered operating system structure with hierarchical
  organization of modules is shown in Fig ( 3 ) in next slide
                                                           20
Application                    Application
 program                        program      User mode
                                             Kernel mode
              System service

              File system

  Memory and I/O Device Management

      Processor scheduling


                 Hardware
      Fig:3 Layered operating system
                                                  21
Advantages of Layered Structure

• One advantage of a layered operating system structure is that
  each layer of code is given access to only the lower-level
  interface
• That is in this approach, the Nth layer can access services
  provided by the (N-1)th layer and provide services to the (N+1)th
  layer
• This structure also allows the operating system to be
  debugged starting at the lowest layer, adding one layer at a
  time until the whole system works correctly

                                                            22
Advantages of Layered Structure

• Layering also make it easier to enhance the
  operating system
• one entire layer can be replaced without affecting
  other parts of the system
• Layered operating system deliver low application
  performance in comparison to monolithic operating
  system

                                                  23
Summary
• The process of calling the kernel is referred to as
  system call invocation
• The call to the kernel “please open the file” is known
  as a system call
• The kernel calls appropriate device drivers to access
  the hardware
• Operating system is a large and complex program
• System call can be defined as a method by which a
  program makes a request to the operating system
                                                        24
Frequently Asked Questions

1. What is system call

2. What are the various types of systems calls

3. Explain the working of system calls

4. Explain Single user Operating System structure
   and Multiuser Operating System structure




                                                 25
Quiz

1. The components of layered operating system
    are organized into modules and layers them
    one on top of the other
•   Yes
•   No




                                             26
Quiz

2. The components of monolithic operating system
  are organized randomly and any module can call
  any other module
• Yes

• No




                                            27
Other subject materials
•   Web designing
•   Micro processors
•   C++ tutorials
•   java

home


                                   28

More Related Content

PPTX
PDF
operating system structure
PPT
Chapter 2 - Network Models
PPTX
Distributed Operating Systems
PPTX
Computer Network Architecture.pptx
PPTX
COCOMO Model in software project management
PPTX
Memory Management in OS
PPTX
Deadlock Prevention
operating system structure
Chapter 2 - Network Models
Distributed Operating Systems
Computer Network Architecture.pptx
COCOMO Model in software project management
Memory Management in OS
Deadlock Prevention

What's hot (20)

PPT
14 relationship between processes
PPTX
TCP/IP Model
PPTX
Routing algorithm
PPTX
distributed Computing system model
PPTX
Os ppt
PPT
CPU Scheduling Algorithms
PPTX
Interfacing With High Level Programming Language
PPTX
TCP/IP Protocol Architeture
PPTX
Data link layer
PPTX
3. osi model
PPTX
Distributed operating system
PPT
system interconnect architectures in ACA
PPTX
Operating system 11 system calls
PPTX
Multiple Access Protocal
PPTX
Network protocals
PPT
IPV4 Frame Format
PDF
Distributed Operating System_1
PPT
program partitioning and scheduling IN Advanced Computer Architecture
PPTX
Transmission media (data communication)
PPTX
Ch 18 intro to network layer - section 1
14 relationship between processes
TCP/IP Model
Routing algorithm
distributed Computing system model
Os ppt
CPU Scheduling Algorithms
Interfacing With High Level Programming Language
TCP/IP Protocol Architeture
Data link layer
3. osi model
Distributed operating system
system interconnect architectures in ACA
Operating system 11 system calls
Multiple Access Protocal
Network protocals
IPV4 Frame Format
Distributed Operating System_1
program partitioning and scheduling IN Advanced Computer Architecture
Transmission media (data communication)
Ch 18 intro to network layer - section 1
Ad

Viewers also liked (6)

PDF
Library programs1
DOCX
What is operating system
PPTX
Hardware software comparisom
PPTX
How to add system calls to OS/161
PPTX
Types of operating system
PPS
Functions Of Operating System
Library programs1
What is operating system
Hardware software comparisom
How to add system calls to OS/161
Types of operating system
Functions Of Operating System
Ad

Similar to system calls, single user, multiuser os structure (20)

PDF
Lect01
PPTX
System structure
PDF
OS_MD_1.pdffffffffffffffffffffffffffffffffffffff
PDF
OS_MD_1.pdf
PPT
operating-system-03092013175227-operating-system.ppt
PPT
Chapter02
PPT
INTRODUCTION TO OPERATING SYSTEM AND BASIC CONCEPTS 2
PPT
PPT
data oerating system overview in os .ppt
PPTX
Operating system components
PDF
Operating System
PPTX
PPT
Overview of Operating System.ppt introduction
PPT
PMOS2e_PPT_Ch01-4web.ppt operating ystem
PDF
Operating System Structure Part-I.pdf
PPT
Chapte2:structure and system call of OS.ppt
PPTX
Advanced Bulkification Strategies in Apex Triggers
PPTX
chapter 1 introduction to operating system
PDF
Introduction to Operating System
Lect01
System structure
OS_MD_1.pdffffffffffffffffffffffffffffffffffffff
OS_MD_1.pdf
operating-system-03092013175227-operating-system.ppt
Chapter02
INTRODUCTION TO OPERATING SYSTEM AND BASIC CONCEPTS 2
data oerating system overview in os .ppt
Operating system components
Operating System
Overview of Operating System.ppt introduction
PMOS2e_PPT_Ch01-4web.ppt operating ystem
Operating System Structure Part-I.pdf
Chapte2:structure and system call of OS.ppt
Advanced Bulkification Strategies in Apex Triggers
chapter 1 introduction to operating system
Introduction to Operating System

More from myrajendra (20)

PPT
Fundamentals
PPT
Data type
PPTX
Hibernate example1
PPTX
Jdbc workflow
PPTX
2 jdbc drivers
PPTX
3 jdbc api
PPTX
4 jdbc step1
PPTX
Dao example
PPTX
Sessionex1
PPTX
Internal
PPTX
3. elements
PPTX
2. attributes
PPTX
1 introduction to html
PPTX
Headings
PPTX
Forms
PPT
PPTX
Views
PPTX
Views
PPTX
Views
PPT
Starting jdbc
Fundamentals
Data type
Hibernate example1
Jdbc workflow
2 jdbc drivers
3 jdbc api
4 jdbc step1
Dao example
Sessionex1
Internal
3. elements
2. attributes
1 introduction to html
Headings
Forms
Views
Views
Views
Starting jdbc

Recently uploaded (20)

DOCX
HELMET DETECTION AND BIOMETRIC BASED VEHICLESECURITY USING MACHINE LEARNING.docx
PDF
Jana-Ojana Finals 2025 - School Quiz by Pragya - UEMK Quiz Club
PDF
V02-Session-4-Leadership-Through-Assessment-MLB.pdf
PDF
English 2nd semesteNotesh biology biopsy results from the other day and I jus...
PDF
GSA-Past-Papers-2010-2024-2.pdf CSS examination
PDF
The 10 Most Inspiring Education Leaders to Follow in 2025.pdf
PDF
BP303T PHARMACEUTICALMICROBIOLOGY UNIT 1
PPTX
Ppt obs emergecy.pptxydirnbduejguxjjdjidjdbuc
PDF
HSE and their team are going through the hazards of the issues with learning ...
PPTX
Entrepreneurship Management and Finance - Module 1 - PPT
PDF
Financial Reporting and Analysis Using Financial Accounting Information by Ch...
PDF
New_Round_Up_6_SB.pdf download for free, easy to learn
PPTX
Power of Gratitude: Honouring our teachers
PDF
HSE 2022-2023.pdf الصحه والسلامه هندسه نفط
PPTX
FILIPINO 8 Q2 WEEK 1(DAY 1).power point presentation
PDF
Insight into Romanian Wild-Grown Heracleum sphondylium: Development of a New ...
DOCX
OA 7- Administrative Office Procedure and Management.docx
PDF
Teacher's Day Quiz 2025
PDF
NGÂN HÀNG CÂU HỎI TÁCH CHỌN LỌC THEO CHUYÊN ĐỀ TỪ ĐỀ THI THỬ TN THPT 2025 TIẾ...
HELMET DETECTION AND BIOMETRIC BASED VEHICLESECURITY USING MACHINE LEARNING.docx
Jana-Ojana Finals 2025 - School Quiz by Pragya - UEMK Quiz Club
V02-Session-4-Leadership-Through-Assessment-MLB.pdf
English 2nd semesteNotesh biology biopsy results from the other day and I jus...
GSA-Past-Papers-2010-2024-2.pdf CSS examination
The 10 Most Inspiring Education Leaders to Follow in 2025.pdf
BP303T PHARMACEUTICALMICROBIOLOGY UNIT 1
Ppt obs emergecy.pptxydirnbduejguxjjdjidjdbuc
HSE and their team are going through the hazards of the issues with learning ...
Entrepreneurship Management and Finance - Module 1 - PPT
Financial Reporting and Analysis Using Financial Accounting Information by Ch...
New_Round_Up_6_SB.pdf download for free, easy to learn
Power of Gratitude: Honouring our teachers
HSE 2022-2023.pdf الصحه والسلامه هندسه نفط
FILIPINO 8 Q2 WEEK 1(DAY 1).power point presentation
Insight into Romanian Wild-Grown Heracleum sphondylium: Development of a New ...
OA 7- Administrative Office Procedure and Management.docx
Teacher's Day Quiz 2025
NGÂN HÀNG CÂU HỎI TÁCH CHỌN LỌC THEO CHUYÊN ĐỀ TỪ ĐỀ THI THỬ TN THPT 2025 TIẾ...

system calls, single user, multiuser os structure

  • 1. Basics of Operating Systems System calls, Single user, Multiuser OS Structure • HOME PREVIOUS TOPIC NEXT • PREVIOUS QUESTION PAPERS FOR OS • CPP TUTORIALS 1
  • 2. Recap In the last class, you have learnt • Operating System Services 2
  • 3. Objectives On completion of this period, you would be able to know • Definition of system call • Types of system calls • Single user operating system structure • Multi user operating system structure 3
  • 4. System calls • User writes a program for a specific purpose, using a specific language • The program that is written uses the hardware as an aid to accomplish the task • The kernel ( part of operating system and considered as heart of operating system ) controls and streamlines the access to the hardware 4
  • 5. System calls • The applications that a user writes normally run on top of an operating system • In most operating systems, a program cannot access the resources directly • The programs run by the user, request the operating system to do a specific task on behalf of a program 5
  • 6. System calls • For example, if the program wants to open a file, it request the operating system to “please open the file with file name” “/usr/read.txt” • The kernel replies to the request suitably • It opens the file if the calling application has permissions • If the application does not have permissions, the operating system simply ignores the request, giving back an error 6
  • 7. System calls • The process of calling the kernel is referred to as system call invocation • Call to the kernel “please open the file” is known as a system call • The kernel calls appropriate device drivers to access the hardware • Figure (1) in next slide shows working of a system call 7
  • 8. User program System call Kernel has control over Hardware resources Device driver Device Fig(1) System Call 8
  • 9. Definition of System Call • System call can be defined as a method by which a program makes a request to the operating system • There are different system calls for performing different kinds of tasks 9
  • 10. Types of System Calls Process control • end, abort • load, execute • create process, terminate process • get process attributes, set process attributes • wait for time • wait event, signal event • allocate and free memory 10
  • 11. File Management • create file, delete file • open, close • read, write, reposition • get file attributes, set file attributes 11
  • 12. Device Management • request device, release device • read, write, reposition • get device attributes, set device attributes • logically attach or detach devices 12
  • 13. Information Maintenance • get time or date, set time or date • get system data, set system data • get process, file or device attributes • set process, file or device attributes 13
  • 14. Communications • create, delete communication connection • send, receive messages • transfer status information • attach or detach remote devices 14
  • 15. Operating System Structure • Operating system is a large and complex program • It has to be designed carefully so that it will function normally and can be modified easily • Generally operating system will not be implemented as a single system • Operating System will be divided into number of modules • Each module will occupy some portion of the system • Each module will have set of inputs, outputs and definite tasks to perform. The module may take assistance of other modules for performing the tasks 15
  • 16. Operating System Structure • The structure of an operating system is dictated by the model employed in building them • An operating system model is a broad frame work that unifies many features and services • Operating systems are broadly classified into two categories based on their structure – Monolithic operating system – Layered operating system 16
  • 17. Monolithic Operating System ( Single User ) • The components of monolithic operating system are organized randomly and any module can call any other module • The applications in the monolithic operating system are separated from the operating system itself • Operating System code runs in privileged mode (kernel mode) with access to system data and to the hardware 17
  • 18. Monolithic Operating System ( single user ) • Applications runs in non privileged mode (called user mode) With a limited set of interfaces available with limited access to the system data • The monolithic operating system structure with separate user and kernel processor is shown in the Fig (2) in next slide 18
  • 19. Application Application program program User mode Kernel mode System service OS Procedures Hardware Fig:2 Monolithic operating system 19
  • 20. Layered Operating System ( Multiuser ) • The components of layered operating system are organized into modules and layers are placed on top of one another • Each module provide a set of functions that other module can call • Interface functions at any particular level can invoke services provided by lower layers but not the other way round • The layered operating system structure with hierarchical organization of modules is shown in Fig ( 3 ) in next slide 20
  • 21. Application Application program program User mode Kernel mode System service File system Memory and I/O Device Management Processor scheduling Hardware Fig:3 Layered operating system 21
  • 22. Advantages of Layered Structure • One advantage of a layered operating system structure is that each layer of code is given access to only the lower-level interface • That is in this approach, the Nth layer can access services provided by the (N-1)th layer and provide services to the (N+1)th layer • This structure also allows the operating system to be debugged starting at the lowest layer, adding one layer at a time until the whole system works correctly 22
  • 23. Advantages of Layered Structure • Layering also make it easier to enhance the operating system • one entire layer can be replaced without affecting other parts of the system • Layered operating system deliver low application performance in comparison to monolithic operating system 23
  • 24. Summary • The process of calling the kernel is referred to as system call invocation • The call to the kernel “please open the file” is known as a system call • The kernel calls appropriate device drivers to access the hardware • Operating system is a large and complex program • System call can be defined as a method by which a program makes a request to the operating system 24
  • 25. Frequently Asked Questions 1. What is system call 2. What are the various types of systems calls 3. Explain the working of system calls 4. Explain Single user Operating System structure and Multiuser Operating System structure 25
  • 26. Quiz 1. The components of layered operating system are organized into modules and layers them one on top of the other • Yes • No 26
  • 27. Quiz 2. The components of monolithic operating system are organized randomly and any module can call any other module • Yes • No 27
  • 28. Other subject materials • Web designing • Micro processors • C++ tutorials • java home 28