CS1550: Quiz - PowerPoint PPT Presentation

1 / 2
About This Presentation
Title:

CS1550: Quiz

Description:

04) Synchronization (with semaphores, locks, etc.) is needed when we have ... isolated, there is no shared resources and therefore no need to synchronize. ... – PowerPoint PPT presentation

Number of Views:44
Avg rating:3.0/5.0
Slides: 3
Provided by: ethanl9
Category:

less

Transcript and Presenter's Notes

Title: CS1550: Quiz


1
CS1550 Quiz 1
2
Questions (True A, False B)
  • 01) The operating system must provide GUI
    (graphical user interface) functions.No, just
    look at the old DOS and the old Unix systems.
  • 02) Kernel threads allow for faster context
    switches than user-level threads.Credit for
    everyone. Yes and no ambiguous question.
    User-level threads have faster context switches
    if they are inside the same process. If they are
    in different processes, kernel-level threads have
    faster context switches
  • 03) Deadlock is possible in a batch system.No,
    deadlocks require more than one process to be
    running at a time, and in batch systems only one
    process runs
  • 04) Synchronization (with semaphores, locks,
    etc.) is needed when we have multiple processes,
    even if the processes cannot communicate.No, if
    the processes are completely isolated, there is
    no shared resources and therefore no need to
    synchronize.
  • 05) Credit for everyone
  • 06) Credit for everyone
  • 07) Deadlocks waste processor time.No, the
    processes just sit there, so it is as if there
    were no processes
  • 08) Whenever there is deadlock there is
    starvation.Yes, deadlocks mean 2 or more
    processes are blocked for ever. They cannot run,
    therefore they are in a starvation situation
  • 09) Whenever there is starvation there is a
    deadlock. No, there could be starvation due to
    livelocks or due to a lower priority job never
    getting a chance to run (never being chosen by
    the scheduler)
Write a Comment
User Comments (0)
About PowerShow.com