SlideShare a Scribd company logo
1 of 5
Download to read offline
1 | P a g e
Chapter One
Solved by Navid Daneshvaran, Software Engineering Student at Kharazmi University, Tehran
Please tell me if you see mistakes in solving problems
Contact Info:
E-Mail: nd.naviddaneshvaran@gmail.com
2.1
When an application wants to access the services that are provided by operating system,
application uses system call to tell the operating system to access to these services.
2.2
1. Creation and deletion of processes
2. Suspension of processes
3. Process synchronization
4. Process communication
5. Deadlock handling
2.3
1. Keep track of which portion of the memory is being used and by which process
2. Which job must be loaded into memory?
3. Allocate and free memory
2.4
1. Free-space management
2. Storage allocation
3. Disk scheduling
2 | P a g e
2.5
The purpose of command interpreter is to get and executes the command of the users. It is
separated from the kernel, because command interpreter itself has its implementation code for its
command and isn’t related to kernel and must to be changed.
2.6
First system call must end the currently process and second system call must start executing of
new process.
2.7
System programs give service to application program and communicate with operating system to
get services.
2.8
Advantage: The maintains and debugs of layered approach is much easier
Disadvantage: The implementation of layered approach is more complex
2.9
Program execution: The operating system loads programs to memory and allocates CPU to them.
It is not reliable to do these work by user-level program.
I/O Operation: Disks, tapes, and other I/O devices needs to access and communicate very low-
level. The user choose the devices and do its work on it and operating system manage this low-
level communication. We can’t trust to user level programs to do these works.
File-system manipulation: There are many work to do including creation, deletion, naming and
etc. for files. There must be a mechanism to allocate and deallocate space to these blocks for files
and it is not trusted for application program to do these works.
Communication: The packets must be sent to network and transmitted across a communication
medium and all these works can’t be done by application program.
Error detection: Software and hardware errors must be tracked by the operating system and it
handles them.
3 | P a g e
2.10
In smartphones and PDAs, we don’t have a disk with file system, therefor we put operating
system on the firmware.
2.11
If we have several operating system, a program that is called boot manager in the start-up must
be executed. It choose which system to boot. Also if we have only one operating system, it sets
default boot to start.
2.12
System programs: Provides a convenient environment for program development and execution.
Some of them are simply user interfaces to system calls.
System calls: Provides services to application programs and communicates with operating
system.
2.13
1. Pass the parameters in registers.
2. If parameter is more than register, it is stored in a block or table in memory and the address of
the block is passed as a parameter to register.
3. Parameters can be placed, or pushed onto the stack by the program and popped of the stack by
the operating system.
2.14
Profiling, which periodically samples the instruction pointer to determine which code is being
executed, can show statistical tends but not individual activities. Code can be included in the
kernel to emit specific data under specific circumstances, but that code slows down the kernel
and tends not to be included in the part of the kernel where the specific problem being debugged
is occurring.
2.15
1. Create file, delete file
2. Open file, close file
4 | P a g e
3. Read file, write file
4. Reposition file
5. Get file attribute, set file attribute
2.16
Advantage: The system calls that are used by file management, can be used by device
management so it isn’t necessary to design a new system call and with interface user assume that
device and files are the same although the underlying process may be different.
Disadvantage: For devices it can be contention or deadlock.
2.17
In command interpreter when we command, in the operating system related system calls are
called so we can’t directly use system calls in the command interpreter.
2.18
There two model for interprocess communication: message passing model and shared-memory
model. In message passing each of the process interconnect with each other and for
communication, first of all must a connection be opened. In shared-memory model a common
memory for process is considered and if one process wants to send message, first stores its
message to shared-memory.
2.19
Mechanism determines how to do something. Policy determines what will be done.
2.20
If two component exchange data with each other, for example CPU and memory unit. In layered
structure when one layer is higher than other layer, higher level use the services provided by
lower level but lower level independent from higher level, so in that situation layered structure is
difficult.
5 | P a g e
2.21
Advantage: Because kernel is smaller the development and extension of the kernel is easier, it
has more security because most of services are in user space.
Disadvantage: The performance of the operating system is lower because some services are in
the user space.
The interaction with microkernel is performed by message passing.
2.22
This more efficient than microkernels because it uses services when needed it also uses layered
approach concepts that makes its debugging easier
2.23
Similarity: both use layered structure for operating system.
Difference: iOS is close-sourced but Android is open-sourced. iOS language is Objective-C
(Now is Swift) But Android is Java.
2.24
Android has its own virtual machine that is called Dalvik and it is designed for devices with
limited memory and CPU processing capabilities.
2.25
The performance of the Synthesis operating system is better, because its assembler is placed in
the kernel and parameter passing through layered is deleted but implementing and debugging is
harder.

More Related Content

What's hot

distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memoryAshish Kumar
 
Distributed operating system
Distributed operating systemDistributed operating system
Distributed operating systemudaya khanal
 
Cluster Tutorial
Cluster TutorialCluster Tutorial
Cluster Tutorialcybercbm
 
fault-tolerance-slide.ppt
fault-tolerance-slide.pptfault-tolerance-slide.ppt
fault-tolerance-slide.pptShailendra61
 
Design issues of dos
Design issues of dosDesign issues of dos
Design issues of dosvanamali_vanu
 
Eucalyptus, Nimbus & OpenNebula
Eucalyptus, Nimbus & OpenNebulaEucalyptus, Nimbus & OpenNebula
Eucalyptus, Nimbus & OpenNebulaAmar Myana
 
Fault tolerance in distributed systems
Fault tolerance in distributed systemsFault tolerance in distributed systems
Fault tolerance in distributed systemssumitjain2013
 
Operating Systems - "Chapter 5 Process Synchronization"
Operating Systems - "Chapter 5 Process Synchronization"Operating Systems - "Chapter 5 Process Synchronization"
Operating Systems - "Chapter 5 Process Synchronization"Ra'Fat Al-Msie'deen
 
Distributed File Systems
Distributed File Systems Distributed File Systems
Distributed File Systems Maurvi04
 
File replication
File replicationFile replication
File replicationKlawal13
 
Implementation levels of virtualization
Implementation levels of virtualizationImplementation levels of virtualization
Implementation levels of virtualizationGokulnath S
 
Distributed & parallel system
Distributed & parallel systemDistributed & parallel system
Distributed & parallel systemManish Singh
 

What's hot (20)

distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
 
Distributed operating system
Distributed operating systemDistributed operating system
Distributed operating system
 
Cluster Tutorial
Cluster TutorialCluster Tutorial
Cluster Tutorial
 
Cluster Computing
Cluster ComputingCluster Computing
Cluster Computing
 
fault-tolerance-slide.ppt
fault-tolerance-slide.pptfault-tolerance-slide.ppt
fault-tolerance-slide.ppt
 
Fault tolerance
Fault toleranceFault tolerance
Fault tolerance
 
6.distributed shared memory
6.distributed shared memory6.distributed shared memory
6.distributed shared memory
 
Kernels and its types
Kernels and its typesKernels and its types
Kernels and its types
 
Design issues of dos
Design issues of dosDesign issues of dos
Design issues of dos
 
Hospital management
Hospital managementHospital management
Hospital management
 
Cluster computing
Cluster computingCluster computing
Cluster computing
 
Eucalyptus, Nimbus & OpenNebula
Eucalyptus, Nimbus & OpenNebulaEucalyptus, Nimbus & OpenNebula
Eucalyptus, Nimbus & OpenNebula
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Fault tolerance in distributed systems
Fault tolerance in distributed systemsFault tolerance in distributed systems
Fault tolerance in distributed systems
 
Operating Systems - "Chapter 5 Process Synchronization"
Operating Systems - "Chapter 5 Process Synchronization"Operating Systems - "Chapter 5 Process Synchronization"
Operating Systems - "Chapter 5 Process Synchronization"
 
Distributed File Systems
Distributed File Systems Distributed File Systems
Distributed File Systems
 
Parallel computing persentation
Parallel computing persentationParallel computing persentation
Parallel computing persentation
 
File replication
File replicationFile replication
File replication
 
Implementation levels of virtualization
Implementation levels of virtualizationImplementation levels of virtualization
Implementation levels of virtualization
 
Distributed & parallel system
Distributed & parallel systemDistributed & parallel system
Distributed & parallel system
 

Viewers also liked

SOLUTION MANUAL OF OPERATING SYSTEM CONCEPTS BY ABRAHAM SILBERSCHATZ, PETER B...
SOLUTION MANUAL OF OPERATING SYSTEM CONCEPTS BY ABRAHAM SILBERSCHATZ, PETER B...SOLUTION MANUAL OF OPERATING SYSTEM CONCEPTS BY ABRAHAM SILBERSCHATZ, PETER B...
SOLUTION MANUAL OF OPERATING SYSTEM CONCEPTS BY ABRAHAM SILBERSCHATZ, PETER B...vtunotesbysree
 
بستر برای جمع آوری اطّلاعات چیست؟
بستر برای جمع آوری اطّلاعات چیست؟بستر برای جمع آوری اطّلاعات چیست؟
بستر برای جمع آوری اطّلاعات چیست؟Navid Daneshvaran
 
Lec11 semaphores
Lec11 semaphoresLec11 semaphores
Lec11 semaphoresanandammca
 
Real Time Operating System Concepts
Real Time Operating System ConceptsReal Time Operating System Concepts
Real Time Operating System ConceptsSanjiv Malik
 
Ch8 OS
Ch8 OSCh8 OS
Ch8 OSC.U
 
Chapter 1: Introduction to Operating System
Chapter 1: Introduction to Operating SystemChapter 1: Introduction to Operating System
Chapter 1: Introduction to Operating SystemShafaan Khaliq Bhatti
 
Tecnología en México
Tecnología en MéxicoTecnología en México
Tecnología en MéxicoAndres Noriega
 
Elementos da teoria da integração
Elementos da teoria da integraçãoElementos da teoria da integração
Elementos da teoria da integraçãoMarcelo Leite
 
Is Sam Oven's Consulting Accelerator A Scam Everything You Need To Know
Is Sam Oven's Consulting Accelerator A Scam Everything You Need To KnowIs Sam Oven's Consulting Accelerator A Scam Everything You Need To Know
Is Sam Oven's Consulting Accelerator A Scam Everything You Need To Knowmepatelchirag
 
3Com 3C95116M-TS-T
3Com 3C95116M-TS-T3Com 3C95116M-TS-T
3Com 3C95116M-TS-Tsavomir
 
конс по нетртехн рис муравьева
конс по нетртехн рис муравьеваконс по нетртехн рис муравьева
конс по нетртехн рис муравьеваdenchk
 
портфоліо вчителя математики
портфоліо вчителя математикипортфоліо вчителя математики
портфоліо вчителя математикиОлег Крупник
 
Manual de Imagen corporativa para Sáchica, Boyacá - Colombia
Manual de Imagen corporativa para Sáchica, Boyacá - ColombiaManual de Imagen corporativa para Sáchica, Boyacá - Colombia
Manual de Imagen corporativa para Sáchica, Boyacá - ColombiaVanesa Ortiz
 

Viewers also liked (17)

SOLUTION MANUAL OF OPERATING SYSTEM CONCEPTS BY ABRAHAM SILBERSCHATZ, PETER B...
SOLUTION MANUAL OF OPERATING SYSTEM CONCEPTS BY ABRAHAM SILBERSCHATZ, PETER B...SOLUTION MANUAL OF OPERATING SYSTEM CONCEPTS BY ABRAHAM SILBERSCHATZ, PETER B...
SOLUTION MANUAL OF OPERATING SYSTEM CONCEPTS BY ABRAHAM SILBERSCHATZ, PETER B...
 
بستر برای جمع آوری اطّلاعات چیست؟
بستر برای جمع آوری اطّلاعات چیست؟بستر برای جمع آوری اطّلاعات چیست؟
بستر برای جمع آوری اطّلاعات چیست؟
 
Lec11 semaphores
Lec11 semaphoresLec11 semaphores
Lec11 semaphores
 
Real Time Operating System Concepts
Real Time Operating System ConceptsReal Time Operating System Concepts
Real Time Operating System Concepts
 
RTOS - Real Time Operating Systems
RTOS - Real Time Operating SystemsRTOS - Real Time Operating Systems
RTOS - Real Time Operating Systems
 
Ch8 OS
Ch8 OSCh8 OS
Ch8 OS
 
Chapter 1: Introduction to Operating System
Chapter 1: Introduction to Operating SystemChapter 1: Introduction to Operating System
Chapter 1: Introduction to Operating System
 
Tecnología en México
Tecnología en MéxicoTecnología en México
Tecnología en México
 
Elementos da teoria da integração
Elementos da teoria da integraçãoElementos da teoria da integração
Elementos da teoria da integração
 
Is Sam Oven's Consulting Accelerator A Scam Everything You Need To Know
Is Sam Oven's Consulting Accelerator A Scam Everything You Need To KnowIs Sam Oven's Consulting Accelerator A Scam Everything You Need To Know
Is Sam Oven's Consulting Accelerator A Scam Everything You Need To Know
 
3Com 3C95116M-TS-T
3Com 3C95116M-TS-T3Com 3C95116M-TS-T
3Com 3C95116M-TS-T
 
Grupos cooperativos
Grupos cooperativosGrupos cooperativos
Grupos cooperativos
 
конс по нетртехн рис муравьева
конс по нетртехн рис муравьеваконс по нетртехн рис муравьева
конс по нетртехн рис муравьева
 
PRESENT PERFECT
PRESENT PERFECTPRESENT PERFECT
PRESENT PERFECT
 
портфоліо вчителя математики
портфоліо вчителя математикипортфоліо вчителя математики
портфоліо вчителя математики
 
Taller inv
Taller invTaller inv
Taller inv
 
Manual de Imagen corporativa para Sáchica, Boyacá - Colombia
Manual de Imagen corporativa para Sáchica, Boyacá - ColombiaManual de Imagen corporativa para Sáchica, Boyacá - Colombia
Manual de Imagen corporativa para Sáchica, Boyacá - Colombia
 

Similar to OS concepts explained in detail

ITT Project Information Technology Basic
ITT Project Information Technology BasicITT Project Information Technology Basic
ITT Project Information Technology BasicMayank Garg
 
Unit 1os processes and threads
Unit 1os processes and threadsUnit 1os processes and threads
Unit 1os processes and threadsdonny101
 
OPERATING SYSTEM BY DR .MUGABO MG MKAMA
OPERATING SYSTEM BY DR .MUGABO MG MKAMAOPERATING SYSTEM BY DR .MUGABO MG MKAMA
OPERATING SYSTEM BY DR .MUGABO MG MKAMAMugabo Mkama
 
Operating System Introduction
Operating System IntroductionOperating System Introduction
Operating System Introductiondipaknandankar
 
Operating system
Operating systemOperating system
Operating systemMark Muhama
 
Os files 2
Os files 2Os files 2
Os files 2Amit Pal
 
unit-1@ DISTRIBUTED SYSTEMS-III B.TECH -CSE.ppt
unit-1@ DISTRIBUTED SYSTEMS-III B.TECH -CSE.pptunit-1@ DISTRIBUTED SYSTEMS-III B.TECH -CSE.ppt
unit-1@ DISTRIBUTED SYSTEMS-III B.TECH -CSE.pptvmuniraja
 
introduction To Operating System
introduction To Operating Systemintroduction To Operating System
introduction To Operating SystemLuka M G
 
Unit 2 part 2(Process)
Unit 2 part 2(Process)Unit 2 part 2(Process)
Unit 2 part 2(Process)WajeehaBaig
 
mini proj_batch1.pptx online secure file transfer system
mini proj_batch1.pptx online secure file transfer systemmini proj_batch1.pptx online secure file transfer system
mini proj_batch1.pptx online secure file transfer systemKorbanMaheshwari
 
Operating Systems Structure1- Explain briefly why the objectives o.pdf
Operating Systems Structure1- Explain briefly why the objectives o.pdfOperating Systems Structure1- Explain briefly why the objectives o.pdf
Operating Systems Structure1- Explain briefly why the objectives o.pdfrishabjain5053
 
4 Module - Operating Systems Configuration and Use by Mark John Lado
4 Module - Operating Systems Configuration and Use by Mark John Lado4 Module - Operating Systems Configuration and Use by Mark John Lado
4 Module - Operating Systems Configuration and Use by Mark John LadoMark John Lado, MIT
 
Computer Network Theory Part 3
Computer Network Theory Part 3Computer Network Theory Part 3
Computer Network Theory Part 3NishatTasnimAli
 

Similar to OS concepts explained in detail (20)

Chap 2_ans.pdf
Chap 2_ans.pdfChap 2_ans.pdf
Chap 2_ans.pdf
 
ITT Project Information Technology Basic
ITT Project Information Technology BasicITT Project Information Technology Basic
ITT Project Information Technology Basic
 
Unit 1os processes and threads
Unit 1os processes and threadsUnit 1os processes and threads
Unit 1os processes and threads
 
OPERATING SYSTEM BY DR .MUGABO MG MKAMA
OPERATING SYSTEM BY DR .MUGABO MG MKAMAOPERATING SYSTEM BY DR .MUGABO MG MKAMA
OPERATING SYSTEM BY DR .MUGABO MG MKAMA
 
System structure
System structureSystem structure
System structure
 
Operating System Introduction
Operating System IntroductionOperating System Introduction
Operating System Introduction
 
Firo
FiroFiro
Firo
 
Operating system
Operating systemOperating system
Operating system
 
Os files 2
Os files 2Os files 2
Os files 2
 
Chapter 3 chapter reading task
Chapter 3 chapter reading taskChapter 3 chapter reading task
Chapter 3 chapter reading task
 
unit-1@ DISTRIBUTED SYSTEMS-III B.TECH -CSE.ppt
unit-1@ DISTRIBUTED SYSTEMS-III B.TECH -CSE.pptunit-1@ DISTRIBUTED SYSTEMS-III B.TECH -CSE.ppt
unit-1@ DISTRIBUTED SYSTEMS-III B.TECH -CSE.ppt
 
introduction To Operating System
introduction To Operating Systemintroduction To Operating System
introduction To Operating System
 
Unit 2 part 2(Process)
Unit 2 part 2(Process)Unit 2 part 2(Process)
Unit 2 part 2(Process)
 
mini proj_batch1.pptx online secure file transfer system
mini proj_batch1.pptx online secure file transfer systemmini proj_batch1.pptx online secure file transfer system
mini proj_batch1.pptx online secure file transfer system
 
Os unit 1
Os unit 1Os unit 1
Os unit 1
 
OPERATING SYSTEM.pdf
OPERATING SYSTEM.pdfOPERATING SYSTEM.pdf
OPERATING SYSTEM.pdf
 
OPERATING SYSTEM.pdf
OPERATING SYSTEM.pdfOPERATING SYSTEM.pdf
OPERATING SYSTEM.pdf
 
Operating Systems Structure1- Explain briefly why the objectives o.pdf
Operating Systems Structure1- Explain briefly why the objectives o.pdfOperating Systems Structure1- Explain briefly why the objectives o.pdf
Operating Systems Structure1- Explain briefly why the objectives o.pdf
 
4 Module - Operating Systems Configuration and Use by Mark John Lado
4 Module - Operating Systems Configuration and Use by Mark John Lado4 Module - Operating Systems Configuration and Use by Mark John Lado
4 Module - Operating Systems Configuration and Use by Mark John Lado
 
Computer Network Theory Part 3
Computer Network Theory Part 3Computer Network Theory Part 3
Computer Network Theory Part 3
 

Recently uploaded

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 

Recently uploaded (20)

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 

OS concepts explained in detail

  • 1. 1 | P a g e Chapter One Solved by Navid Daneshvaran, Software Engineering Student at Kharazmi University, Tehran Please tell me if you see mistakes in solving problems Contact Info: E-Mail: nd.naviddaneshvaran@gmail.com 2.1 When an application wants to access the services that are provided by operating system, application uses system call to tell the operating system to access to these services. 2.2 1. Creation and deletion of processes 2. Suspension of processes 3. Process synchronization 4. Process communication 5. Deadlock handling 2.3 1. Keep track of which portion of the memory is being used and by which process 2. Which job must be loaded into memory? 3. Allocate and free memory 2.4 1. Free-space management 2. Storage allocation 3. Disk scheduling
  • 2. 2 | P a g e 2.5 The purpose of command interpreter is to get and executes the command of the users. It is separated from the kernel, because command interpreter itself has its implementation code for its command and isn’t related to kernel and must to be changed. 2.6 First system call must end the currently process and second system call must start executing of new process. 2.7 System programs give service to application program and communicate with operating system to get services. 2.8 Advantage: The maintains and debugs of layered approach is much easier Disadvantage: The implementation of layered approach is more complex 2.9 Program execution: The operating system loads programs to memory and allocates CPU to them. It is not reliable to do these work by user-level program. I/O Operation: Disks, tapes, and other I/O devices needs to access and communicate very low- level. The user choose the devices and do its work on it and operating system manage this low- level communication. We can’t trust to user level programs to do these works. File-system manipulation: There are many work to do including creation, deletion, naming and etc. for files. There must be a mechanism to allocate and deallocate space to these blocks for files and it is not trusted for application program to do these works. Communication: The packets must be sent to network and transmitted across a communication medium and all these works can’t be done by application program. Error detection: Software and hardware errors must be tracked by the operating system and it handles them.
  • 3. 3 | P a g e 2.10 In smartphones and PDAs, we don’t have a disk with file system, therefor we put operating system on the firmware. 2.11 If we have several operating system, a program that is called boot manager in the start-up must be executed. It choose which system to boot. Also if we have only one operating system, it sets default boot to start. 2.12 System programs: Provides a convenient environment for program development and execution. Some of them are simply user interfaces to system calls. System calls: Provides services to application programs and communicates with operating system. 2.13 1. Pass the parameters in registers. 2. If parameter is more than register, it is stored in a block or table in memory and the address of the block is passed as a parameter to register. 3. Parameters can be placed, or pushed onto the stack by the program and popped of the stack by the operating system. 2.14 Profiling, which periodically samples the instruction pointer to determine which code is being executed, can show statistical tends but not individual activities. Code can be included in the kernel to emit specific data under specific circumstances, but that code slows down the kernel and tends not to be included in the part of the kernel where the specific problem being debugged is occurring. 2.15 1. Create file, delete file 2. Open file, close file
  • 4. 4 | P a g e 3. Read file, write file 4. Reposition file 5. Get file attribute, set file attribute 2.16 Advantage: The system calls that are used by file management, can be used by device management so it isn’t necessary to design a new system call and with interface user assume that device and files are the same although the underlying process may be different. Disadvantage: For devices it can be contention or deadlock. 2.17 In command interpreter when we command, in the operating system related system calls are called so we can’t directly use system calls in the command interpreter. 2.18 There two model for interprocess communication: message passing model and shared-memory model. In message passing each of the process interconnect with each other and for communication, first of all must a connection be opened. In shared-memory model a common memory for process is considered and if one process wants to send message, first stores its message to shared-memory. 2.19 Mechanism determines how to do something. Policy determines what will be done. 2.20 If two component exchange data with each other, for example CPU and memory unit. In layered structure when one layer is higher than other layer, higher level use the services provided by lower level but lower level independent from higher level, so in that situation layered structure is difficult.
  • 5. 5 | P a g e 2.21 Advantage: Because kernel is smaller the development and extension of the kernel is easier, it has more security because most of services are in user space. Disadvantage: The performance of the operating system is lower because some services are in the user space. The interaction with microkernel is performed by message passing. 2.22 This more efficient than microkernels because it uses services when needed it also uses layered approach concepts that makes its debugging easier 2.23 Similarity: both use layered structure for operating system. Difference: iOS is close-sourced but Android is open-sourced. iOS language is Objective-C (Now is Swift) But Android is Java. 2.24 Android has its own virtual machine that is called Dalvik and it is designed for devices with limited memory and CPU processing capabilities. 2.25 The performance of the Synthesis operating system is better, because its assembler is placed in the kernel and parameter passing through layered is deleted but implementing and debugging is harder.