Skip to main content

CS 703 Advance Operating System Viva Solved Questions

Deadline Scheduling
• Information used
üReady time
üStarting deadline
üCompletion deadline
üProcessing time
üResource requirements
üPriority
üSubtask scheduler

Mark and Sweep Collecting
Mark and Sweep
• Mark using depth-first traversal of the memory graph
• Sweep using lengths to find next block

What is an operating system?
• Top-down view
• Bottom-up view
• Time multiplexing
• Space multiplexing

Type of Operating Systems
• Main frame operating systems
• Time-sharing systems
• Multiprocessor operating systems
• PC operating systems
• Real-time operating systems
• Embedded operating system

OS Structure
• Monolithic Design
• Layering
• Micro-kernel

ELF Object File Format
• Elf header
• Program header table
• .text section
• .data section
• .bss section

Asynchronous Exceptions (Interrupts)
• Caused by events external to the processor

Synchronous Exceptions
• Traps
• Faults
• Aborts

Process Creation
• Assign a unique process identifier
• Allocate space for the process
• Initialize process control block

Unix SVR4 Processes

Process Control Block
• Process state: e.g., running, ready, waiting, halted
• Priority
• Scheduling-related information
• Event

fork: Creating new processes
• int fork(void)

exit: Destroying Process
• void exit(int status)


Two uses of semaphores
• Mutual exclusion
• Scheduling constraints

Condition variables
• Condition variable: a queue of threads waiting for something inside a critical section.
• Wait() -- release lock, go to sleep, re-acquire lock
• Signal() -- wake up a waiter, if any
• Broadcast() -- wake up all waiters

Conditions for deadlock
• Without all of these, can't have deadlock:
1. Mutual exclusion
2. No preemption
3. Hold and wait
4. Circular wait

Features of Real-Time Operating Systems
• Fast process or thread switch
• Small size
• Ability to respond to external interrupts quickly
• Multitasking with inter-process communication tools such as semaphores, signals, and
events
• Use of special sequential files that can accumulate data at a fast rate
• Preemptive scheduling base on priority
• Minimization of intervals during which interrupts are disabled
• Delay tasks for fixed amount of time
• Special alarms and timeouts

Advantages and disadvantages of monolithic design

Major Advantages:
1.      Cost of module interaction is low  

Disadvantages
1.      Hard to understand
2.      Hard to modify
3.      Unreliable
4.      Hard to maintain

User-level threads
User-level threads are faster to create and manage.
Implementation is by a thread library at the user level.
User-level thread is generic and can run on any operating system.
Multi-threaded applications cannot take advantage of multiprocessing.

Kernel-level threads
Kernel-level threads are slower to create and manage.
Operating system supports creation of Kernel threads.
Kernel-level thread is specific to the operating system.
Kernel routines themselves can be multi-threaded.

Shortest Job First (SJF) scheduling algorithm:
 It is a non preemptive scheduling algorithm which is used for batch systems. This algorithm works only when all the jobs are available at a particular time. In this algorithm the shortest job is picked form the queue and is run first. After that the next shortest job is picked and so on.

Shortest Job First (SJF) scheduling algorithm:
 It is a non preemptive scheduling algorithm which is used for batch systems. This algorithm works only when all the jobs are available at a particular time. In this algorithm the shortest job is picked form the queue and is run first. After that the next shortest job is picked and so on.

Shortest Remaining Time Next (SRTN) scheduling algorithm:
 It is a preemptive form of Shortest Job First (SJF) scheduling algorithm. In this algorithm a job is chosen whose remaining run time is the shortest. For a new job, its run time is compared with remaining time of current job. If new job needs less time to complete than the current job, then, the current job is blocked and the new job is run. It is used for batch systems and provides advantages to new jobs.

Static library
A static library is a programming concept in which shared libraries with special functionalities, classes or resources are linked to external applications or components, facilitating the creation of stand-alone and executable files.

Comments

Popular posts from this blog

How to set up a passkey for your Apple account

  Passkeys are a new and more secure way to sign in to your Apple account. They are similar to passwords, but they are stored on your device and are not shared with Apple. This makes them more resistant to phishing attacks and other security threats. Passkeys are currently not available for Apple accounts. However, they are expected to be available in a future software update. Set up a passkey for Apple account When passkeys are available, you will be able to set up a passkey for your Apple account by following these steps: 1.     Go to the Settings app on your Apple device. 2.     Tap on your name at the top of the screen. 3.     Tap on "Password & Security." 4.     Tap on "Passkeys." 5.     Tap on "Set Up Passkey." 6.     Follow the on-screen instructions to create a passkey. Once you have created a passkey, you will be able to use it to sign in to your Apple account on...

Requirement for connecting to the Internet

The basic requirements for connecting to the Internet are a computer device. In addition,   you need the following things, to connect to the Internet: (i)           Modem (ii)          Telephone wire (iii)         Internet Service Provider (ISP) (iv)        Internet connection (v)         Web-browsing software Modem (modulator-demodulator) A modem is a device that enables a computer to transmit data over telephone or cable lines. Computer stored information digitally; information transmitted over telephone lines in the form of analog waves. A modem converts between these two forms. A modem can be either internal or external. The internal modem is attached to a slot on the motherboard. The external modem can be placed anywhere outside the system unit and connected to the ...

Approaches of comparative education

  Apollo (1986) identified eight approaches to the study of Comparative Education. They are: 1. Problem Approach or Thematic approach 2. Case study approach 3. Area study approach 4. Historical approach 5. Descriptive approach  6. Philosophical approach  7. International approach and 8.  Gastronomic approach 1. Problem approach or thematic approach —   In this approach the investigator will first of all identify a particular educational problem in his own country. Then, he will begin to look for another country that has the same problem . —   The researcher will also study the education problem of another country in relation to their culture. The researcher will not only study the educational problem of another country but he will also examine the solution applied to such problem by the affected country . 2. Case study approach   —   In this approach, an education comparativist from Nigeria can go to Iraq to study the...