Basic CS-Operating System [3i Infotech Placement]: Sample Questions 49 - 50 of 89

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 49

Operating System
Edit

Describe in Detail

Essay▾

What are the advantages of using typedef in a program?

Explanation

Understanding of Typedefination
  • Typedef is a reserved keyword in the C and C ++ programming languages.
  • Creates an alias name for another data type.
  • Used to simplify the syntax of declaring complex data structures consisting of struct and union types
  • Also used to provide specific descriptive type names for integer data types of varying lengths.

Question 50

Operating System
Edit

Describe in Detail

Essay▾

Explain the popular multiprocessor thread-scheduling strategies.

Explanation

Load Sharing

The Load Sharing
  • Processes are not assigned to particular processor.
  • A global queue of threads is maintained- a thread from this queue is selected for running.
  • Load balancing allocates work to processor on a permanent basis.

Gang Scheduling

Understanding of Gang Scheduling
  • Allows a set of related threads to run on a set of processor at the same time- on 1 to 1 basis.
  • Closely related threads may be scheduled on same processor reducing synchronization blocking and minimizing process switching.
  • Group scheduling predated this strategy.

Dedicated Processor Assignment

Dedicated Processor Assignment
  • When application is scheduled, its threads are assigned to a processor that remains dedicated to it.
  • Some processors may remain idle.
  • No multiprogramming of processors.

Dynamic Scheduling

  • Number of threads in a process are altered dynamically by the application.
  • Operating system adjusts the load to improve utilization.

Developed by: