SlideShare a Scribd company logo
1 of 3
Download to read offline
Linux Interview Essentials – Part IV (Process management)
Emertxe Information Technologies
1. What is scheduling?
The act of determining which process in the ready state should be moved to the running state is
known as Process Scheduling.
The prime aim of the process scheduling system is to keep the CPU busy all the time and to deliver
minimum response time for all programs. For achieving this, the scheduler must apply appropriate
rules for swapping processes IN and OUT of CPU.
2. Explain context switching in detail.
Context switching is the procedure of storing the state of an active process for the CPU when it
has to start executing a new one. For example, process A with its address space and stack is
currently being executed by the CPU and there is a system call to jump to a higher priority process
B; the CPU needs to remember the current state of the process A so that it can suspend its
operation, begin executing the new process B and when done, return to its previously executing
process A.
 Suspending the progression of one process and storing the CPU's state (i.e., the context)
for that process somewhere in memory.
 Retrieving the context of the next process from memory and restoring it in the CPU's
registers.
 Returning to the location indicated by the program counter (i.e., returning to the line of
code at which the process was interrupted) in order to resume the process.
3. During which process states CPU scheduling decisions are made? Explain
CPU scheduling decisions take place under one of four conditions:
 When a process switches from the running state to the waiting state, such as for an I/O
request or invocation of the wait() system call.
 When a process switches from the running state to the ready state, for example in
response to an interrupt.
 When a process switches from the waiting state to the ready state, say at completion of
I/O or a return from wait().
 When a process terminates.
4. What is pre-emptive and non-pre-emptive scheduling algorithms?
 Non pre-emptive scheduling: When the currently executing process gives up the CPU
voluntarily.
 Pre-emptive scheduling: When the operating system decides to favor another process
(High priority), pre-empting the currently executing process.
5. Briefly explain the following algorithms:
 FCFS:
1. Round Robin – Time slice based
In RR time slices are assigned to each process in equal portions and in circular order,
handling all processes without priority (also known as cyclic executive). Round-robin
scheduling is simple, easy to implement, and starvation-free.
2. Round Robin – Priority based
It works same as RR time slice, but we can also assign priority to process. More priority
means large time slice.
 Priority based:
1. Rate monotonic
Rate-monotonic scheduling (RMS) is a scheduling algorithm used in real-time operating
systems (RTOS) with a static-priority scheduling class. The static priorities are assigned
according to the cycle duration of the job, so a shorter cycle duration results in a higher
job priority. Smaller the period, higher the priority.
2. Earliest deadline first
Earliest deadline first (EDF) or least time to go is a dynamic scheduling algorithm used in
real-time operating systems. A priority queue will be maintained and will be searched for
Linux Interview Essentials – Part IV (Process management)
Emertxe Information Technologies
the process closest to its deadline. This process is the next to be scheduled for execution.
6. What is a real-time systems (RTS)? What are the different types of RTS?
Real Time Operating System (RTOS) is designed to provide a predictable (normally described as
deterministic) execution pattern. This is particularly of interest to embedded systems as
embedded systems often have real time requirements. A real time requirement is one that
specifies that the embedded system must respond to a certain event within a strictly defined time
(the deadline). A guarantee to meet real time requirements can only be made if the behavior of
the operating system's scheduler can be predicted.
Soft-RTOS
Soft real time systems can miss some deadlines, but eventually performance will degrade if too
many are missed. Example – multimedia streaming, computer games
Hard-RTOS
Hard real-time means you must absolutely hit every deadline. Very few systems have this
requirement. Some examples are nuclear systems, some medical applications such as pacemakers,
a large number of defense applications, avionics etc. Where life critical situation we have to use
hard real time system.
7. Explain differences between General Purpose Operating System (GPOS), Real Time Operating
System (RTOS) and Embedded Operating System (EOS)
 GPOS
General Purpose Operating System (GPOS) is a software that provides interface to the user to
access various applications. These are running in a commonly used systems & run applications
like desktop PCs (ex: Windows 10). They run on a general purpose hardware.
 RTOS
Real Time Operating System (RTOS) is a software that has certain time constraint. Such OS
operate with stringent time expectations to deliver a predictable response to use applications
(ex: robotics). This OS can run either on a general or specific hardware that is designed.
 EOS
Embedded OS (EOS) is a software that runs on a specific hardware that runs specific set of
applications. Along with running in a specific target, EOS will have resource constraints (ex:
size) hence it should be customizable and configurable to meet embedded system needs.
8. Is Linux a RTOS? Explain your justification
Linux is not RTOS but RTLinux is a RTOS version of Linux OS. RTLinux is a hard real-time RTOS
microkernel that runs the entire Linux operating system as a fully preemptive process.
Ref Qn 6
9. What is real time scheduling?
Rate monotonic and earliest deadline first are real time scheduling. Refer Qn 5
10. What specific situations you need to take care while building an RTS?
 Reliability
 Predictability
 Performance
 Compactness
 Scalability
 User control over OS Policies
 Responsiveness
– Fast task switch
– Fast interrupt response
Linux Interview Essentials – Part IV (Process management)
Emertxe Information Technologies

More Related Content

What's hot

Embedded_Linux_Booting
Embedded_Linux_BootingEmbedded_Linux_Booting
Embedded_Linux_Booting
Rashila Rr
 

What's hot (20)

Linux Internals - Interview essentials 2.0
Linux Internals - Interview essentials 2.0Linux Internals - Interview essentials 2.0
Linux Internals - Interview essentials 2.0
 
Linux Initialization Process (2)
Linux Initialization Process (2)Linux Initialization Process (2)
Linux Initialization Process (2)
 
Linux Internals - Kernel/Core
Linux Internals - Kernel/CoreLinux Internals - Kernel/Core
Linux Internals - Kernel/Core
 
Architecture Of The Linux Kernel
Architecture Of The Linux KernelArchitecture Of The Linux Kernel
Architecture Of The Linux Kernel
 
Linux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell ScriptingLinux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell Scripting
 
Understanding a kernel oops and a kernel panic
Understanding a kernel oops and a kernel panicUnderstanding a kernel oops and a kernel panic
Understanding a kernel oops and a kernel panic
 
Linux-Internals-and-Networking
Linux-Internals-and-NetworkingLinux-Internals-and-Networking
Linux-Internals-and-Networking
 
Linux device drivers
Linux device drivers Linux device drivers
Linux device drivers
 
Linux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKBLinux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKB
 
Linux Programming
Linux ProgrammingLinux Programming
Linux Programming
 
The Linux Block Layer - Built for Fast Storage
The Linux Block Layer - Built for Fast StorageThe Linux Block Layer - Built for Fast Storage
The Linux Block Layer - Built for Fast Storage
 
Embedded Linux on ARM
Embedded Linux on ARMEmbedded Linux on ARM
Embedded Linux on ARM
 
Linux kernel
Linux kernelLinux kernel
Linux kernel
 
Embedded_Linux_Booting
Embedded_Linux_BootingEmbedded_Linux_Booting
Embedded_Linux_Booting
 
Browsing Linux Kernel Source
Browsing Linux Kernel SourceBrowsing Linux Kernel Source
Browsing Linux Kernel Source
 
Linux Internals - Part III
Linux Internals - Part IIILinux Internals - Part III
Linux Internals - Part III
 
Linux Kernel Exploitation
Linux Kernel ExploitationLinux Kernel Exploitation
Linux Kernel Exploitation
 
UM2019 Extended BPF: A New Type of Software
UM2019 Extended BPF: A New Type of SoftwareUM2019 Extended BPF: A New Type of Software
UM2019 Extended BPF: A New Type of Software
 
Linux kernel
Linux kernelLinux kernel
Linux kernel
 
The TCP/IP Stack in the Linux Kernel
The TCP/IP Stack in the Linux KernelThe TCP/IP Stack in the Linux Kernel
The TCP/IP Stack in the Linux Kernel
 

Viewers also liked

Viewers also liked (20)

Linux Internals - Interview essentials 3.0
Linux Internals - Interview essentials 3.0Linux Internals - Interview essentials 3.0
Linux Internals - Interview essentials 3.0
 
Communication Protocols (UART, SPI,I2C)
Communication Protocols (UART, SPI,I2C)Communication Protocols (UART, SPI,I2C)
Communication Protocols (UART, SPI,I2C)
 
Data Structures & Algorithm design using C
Data Structures & Algorithm design using C Data Structures & Algorithm design using C
Data Structures & Algorithm design using C
 
Embedded C
Embedded CEmbedded C
Embedded C
 
Linux systems - Getting started with setting up and embedded platform
Linux systems - Getting started with setting up and embedded platformLinux systems - Getting started with setting up and embedded platform
Linux systems - Getting started with setting up and embedded platform
 
Embedded C - Optimization techniques
Embedded C - Optimization techniquesEmbedded C - Optimization techniques
Embedded C - Optimization techniques
 
Embedded Linux on ARM
Embedded Linux on ARMEmbedded Linux on ARM
Embedded Linux on ARM
 
Embedded Android : System Development - Part II (Linux device drivers)
Embedded Android : System Development - Part II (Linux device drivers)Embedded Android : System Development - Part II (Linux device drivers)
Embedded Android : System Development - Part II (Linux device drivers)
 
Linux programming - Getting self started
Linux programming - Getting self started Linux programming - Getting self started
Linux programming - Getting self started
 
File systems for Embedded Linux
File systems for Embedded LinuxFile systems for Embedded Linux
File systems for Embedded Linux
 
Embedded Linux Kernel - Build your custom kernel
Embedded Linux Kernel - Build your custom kernelEmbedded Linux Kernel - Build your custom kernel
Embedded Linux Kernel - Build your custom kernel
 
Embedded Android : System Development - Part IV
Embedded Android : System Development - Part IVEmbedded Android : System Development - Part IV
Embedded Android : System Development - Part IV
 
Embedded Android : System Development - Part I
Embedded Android : System Development - Part IEmbedded Android : System Development - Part I
Embedded Android : System Development - Part I
 
sCode optimization
sCode optimizationsCode optimization
sCode optimization
 
States machine
States machineStates machine
States machine
 
Keyword Presentation
Keyword PresentationKeyword Presentation
Keyword Presentation
 
Types and roles
Types and rolesTypes and roles
Types and roles
 
Uml Common Mechanism
Uml Common MechanismUml Common Mechanism
Uml Common Mechanism
 
Processes and threads
Processes and threadsProcesses and threads
Processes and threads
 
Compilers
CompilersCompilers
Compilers
 

Similar to Linux Internals - Interview essentials 4.0

Chapter 2 (Part 2)
Chapter 2 (Part 2) Chapter 2 (Part 2)
Chapter 2 (Part 2)
rohassanie
 
What is operating system
What is operating systemWhat is operating system
What is operating system
vmahesmca
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
Operating system Q/A
Operating system Q/AOperating system Q/A
Operating system Q/A
Abdul Munam
 
Real time os(suga)
Real time os(suga) Real time os(suga)
Real time os(suga)
Nagarajan
 

Similar to Linux Internals - Interview essentials 4.0 (20)

OVERVIEW OF RTOS
OVERVIEW OF RTOSOVERVIEW OF RTOS
OVERVIEW OF RTOS
 
Cp usched 2
Cp usched  2Cp usched  2
Cp usched 2
 
embedded system CHAPTER four about design .pdf
embedded system CHAPTER four about design .pdfembedded system CHAPTER four about design .pdf
embedded system CHAPTER four about design .pdf
 
Cpu scheduling final
Cpu scheduling finalCpu scheduling final
Cpu scheduling final
 
Chapter 2 (Part 2)
Chapter 2 (Part 2) Chapter 2 (Part 2)
Chapter 2 (Part 2)
 
Cpu scheduling pre final formatting
Cpu scheduling pre final formattingCpu scheduling pre final formatting
Cpu scheduling pre final formatting
 
Cpu scheduling
Cpu schedulingCpu scheduling
Cpu scheduling
 
UNIT II - CPU SCHEDULING.docx
UNIT II - CPU SCHEDULING.docxUNIT II - CPU SCHEDULING.docx
UNIT II - CPU SCHEDULING.docx
 
LM10,11,12 - CPU SCHEDULING algorithms and its processes
LM10,11,12 - CPU SCHEDULING algorithms and its processesLM10,11,12 - CPU SCHEDULING algorithms and its processes
LM10,11,12 - CPU SCHEDULING algorithms and its processes
 
Module 3-cpu-scheduling
Module 3-cpu-schedulingModule 3-cpu-scheduling
Module 3-cpu-scheduling
 
What is operating system
What is operating systemWhat is operating system
What is operating system
 
What is operating system
What is operating systemWhat is operating system
What is operating system
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)
 
Rtos Concepts
Rtos ConceptsRtos Concepts
Rtos Concepts
 
Processing management
Processing managementProcessing management
Processing management
 
PROCESS.pptx
PROCESS.pptxPROCESS.pptx
PROCESS.pptx
 
seminar report
seminar reportseminar report
seminar report
 
Operating system Q/A
Operating system Q/AOperating system Q/A
Operating system Q/A
 
Real time os(suga)
Real time os(suga) Real time os(suga)
Real time os(suga)
 
Operating System.pptx
Operating System.pptxOperating System.pptx
Operating System.pptx
 

More from Emertxe Information Technologies Pvt Ltd

More from Emertxe Information Technologies Pvt Ltd (20)

premium post (1).pdf
premium post (1).pdfpremium post (1).pdf
premium post (1).pdf
 
Career Transition (1).pdf
Career Transition (1).pdfCareer Transition (1).pdf
Career Transition (1).pdf
 
10_isxdigit.pdf
10_isxdigit.pdf10_isxdigit.pdf
10_isxdigit.pdf
 
01_student_record.pdf
01_student_record.pdf01_student_record.pdf
01_student_record.pdf
 
02_swap.pdf
02_swap.pdf02_swap.pdf
02_swap.pdf
 
01_sizeof.pdf
01_sizeof.pdf01_sizeof.pdf
01_sizeof.pdf
 
07_product_matrix.pdf
07_product_matrix.pdf07_product_matrix.pdf
07_product_matrix.pdf
 
06_sort_names.pdf
06_sort_names.pdf06_sort_names.pdf
06_sort_names.pdf
 
05_fragments.pdf
05_fragments.pdf05_fragments.pdf
05_fragments.pdf
 
04_magic_square.pdf
04_magic_square.pdf04_magic_square.pdf
04_magic_square.pdf
 
03_endianess.pdf
03_endianess.pdf03_endianess.pdf
03_endianess.pdf
 
02_variance.pdf
02_variance.pdf02_variance.pdf
02_variance.pdf
 
01_memory_manager.pdf
01_memory_manager.pdf01_memory_manager.pdf
01_memory_manager.pdf
 
09_nrps.pdf
09_nrps.pdf09_nrps.pdf
09_nrps.pdf
 
11_pangram.pdf
11_pangram.pdf11_pangram.pdf
11_pangram.pdf
 
10_combinations.pdf
10_combinations.pdf10_combinations.pdf
10_combinations.pdf
 
08_squeeze.pdf
08_squeeze.pdf08_squeeze.pdf
08_squeeze.pdf
 
07_strtok.pdf
07_strtok.pdf07_strtok.pdf
07_strtok.pdf
 
06_reverserec.pdf
06_reverserec.pdf06_reverserec.pdf
06_reverserec.pdf
 
05_reverseiter.pdf
05_reverseiter.pdf05_reverseiter.pdf
05_reverseiter.pdf
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 

Linux Internals - Interview essentials 4.0

  • 1. Linux Interview Essentials – Part IV (Process management) Emertxe Information Technologies 1. What is scheduling? The act of determining which process in the ready state should be moved to the running state is known as Process Scheduling. The prime aim of the process scheduling system is to keep the CPU busy all the time and to deliver minimum response time for all programs. For achieving this, the scheduler must apply appropriate rules for swapping processes IN and OUT of CPU. 2. Explain context switching in detail. Context switching is the procedure of storing the state of an active process for the CPU when it has to start executing a new one. For example, process A with its address space and stack is currently being executed by the CPU and there is a system call to jump to a higher priority process B; the CPU needs to remember the current state of the process A so that it can suspend its operation, begin executing the new process B and when done, return to its previously executing process A.  Suspending the progression of one process and storing the CPU's state (i.e., the context) for that process somewhere in memory.  Retrieving the context of the next process from memory and restoring it in the CPU's registers.  Returning to the location indicated by the program counter (i.e., returning to the line of code at which the process was interrupted) in order to resume the process. 3. During which process states CPU scheduling decisions are made? Explain CPU scheduling decisions take place under one of four conditions:  When a process switches from the running state to the waiting state, such as for an I/O request or invocation of the wait() system call.  When a process switches from the running state to the ready state, for example in response to an interrupt.  When a process switches from the waiting state to the ready state, say at completion of I/O or a return from wait().  When a process terminates. 4. What is pre-emptive and non-pre-emptive scheduling algorithms?  Non pre-emptive scheduling: When the currently executing process gives up the CPU voluntarily.  Pre-emptive scheduling: When the operating system decides to favor another process (High priority), pre-empting the currently executing process. 5. Briefly explain the following algorithms:  FCFS: 1. Round Robin – Time slice based In RR time slices are assigned to each process in equal portions and in circular order, handling all processes without priority (also known as cyclic executive). Round-robin scheduling is simple, easy to implement, and starvation-free. 2. Round Robin – Priority based It works same as RR time slice, but we can also assign priority to process. More priority means large time slice.  Priority based: 1. Rate monotonic Rate-monotonic scheduling (RMS) is a scheduling algorithm used in real-time operating systems (RTOS) with a static-priority scheduling class. The static priorities are assigned according to the cycle duration of the job, so a shorter cycle duration results in a higher job priority. Smaller the period, higher the priority. 2. Earliest deadline first Earliest deadline first (EDF) or least time to go is a dynamic scheduling algorithm used in real-time operating systems. A priority queue will be maintained and will be searched for
  • 2. Linux Interview Essentials – Part IV (Process management) Emertxe Information Technologies the process closest to its deadline. This process is the next to be scheduled for execution. 6. What is a real-time systems (RTS)? What are the different types of RTS? Real Time Operating System (RTOS) is designed to provide a predictable (normally described as deterministic) execution pattern. This is particularly of interest to embedded systems as embedded systems often have real time requirements. A real time requirement is one that specifies that the embedded system must respond to a certain event within a strictly defined time (the deadline). A guarantee to meet real time requirements can only be made if the behavior of the operating system's scheduler can be predicted. Soft-RTOS Soft real time systems can miss some deadlines, but eventually performance will degrade if too many are missed. Example – multimedia streaming, computer games Hard-RTOS Hard real-time means you must absolutely hit every deadline. Very few systems have this requirement. Some examples are nuclear systems, some medical applications such as pacemakers, a large number of defense applications, avionics etc. Where life critical situation we have to use hard real time system. 7. Explain differences between General Purpose Operating System (GPOS), Real Time Operating System (RTOS) and Embedded Operating System (EOS)  GPOS General Purpose Operating System (GPOS) is a software that provides interface to the user to access various applications. These are running in a commonly used systems & run applications like desktop PCs (ex: Windows 10). They run on a general purpose hardware.  RTOS Real Time Operating System (RTOS) is a software that has certain time constraint. Such OS operate with stringent time expectations to deliver a predictable response to use applications (ex: robotics). This OS can run either on a general or specific hardware that is designed.  EOS Embedded OS (EOS) is a software that runs on a specific hardware that runs specific set of applications. Along with running in a specific target, EOS will have resource constraints (ex: size) hence it should be customizable and configurable to meet embedded system needs. 8. Is Linux a RTOS? Explain your justification Linux is not RTOS but RTLinux is a RTOS version of Linux OS. RTLinux is a hard real-time RTOS microkernel that runs the entire Linux operating system as a fully preemptive process. Ref Qn 6 9. What is real time scheduling? Rate monotonic and earliest deadline first are real time scheduling. Refer Qn 5 10. What specific situations you need to take care while building an RTS?  Reliability  Predictability  Performance  Compactness  Scalability  User control over OS Policies  Responsiveness – Fast task switch – Fast interrupt response
  • 3. Linux Interview Essentials – Part IV (Process management) Emertxe Information Technologies