Operating System Concepts

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

OS is software or hardware?

  • Hardware
  • Software (correct)

Interrupts may be triggered by either hardware or software.

True (A)

What is another term for kernel mode?

  • Supervisor mode
  • System mode
  • Privileged mode
  • All of the above (correct)

A _____ can be used to prevent a user program from never returning control to the operating system.

<p>Timer (A)</p> Signup and view all the answers

Which of the following instructions should only be run in kernel mode?

Signup and view all the answers

Security is equivalent to protection with no difference.

<p>False (B)</p> Signup and view all the answers

Which of the following is a property of peer-to-peer systems?

<p>Clients and servers are not distinguished from one another (B)</p> Signup and view all the answers

A _____ provides a file-system interface that allows clients to create and modify files.

<p>File-server system (C)</p> Signup and view all the answers

System call interface is the boundary between user programs and operating system services.

<p>False (B)</p> Signup and view all the answers

Touch screen is a user interface on mobile systems.

<p>False (B)</p> Signup and view all the answers

_____ is/are not a technique for passing parameters from an application to a system call.

<p>Cache memory (A)</p> Signup and view all the answers

System calls can be run in either user mode or kernel mode.

<p>False (B)</p> Signup and view all the answers

A statically linked library is only linked and loaded if it is conditionally required during program runtime.

<p>False (B)</p> Signup and view all the answers

The major difficulty in designing a layered operating system approach is _____

<p>Appropriately defining the various layers</p> Signup and view all the answers

A microkernel is a kernel _____.

<p>That is stripped of all nonessential components</p> Signup and view all the answers

_____ allows operating system services to be loaded dynamically.

<p>Modules</p> Signup and view all the answers

A boot block _____.

<p>Typically only knows the location and length of the rest of the bootstrap program</p> Signup and view all the answers

An initial bootstrap program is in the form of random-access memory (RAM).

<p>False (B)</p> Signup and view all the answers

If a program terminates abnormally, a dump of memory may be examined by a_____ to determine the cause of the error.

<p>Debugger</p> Signup and view all the answers

Debugging is the activity of finding and fixing errors in a system, only in software.

<p>False (B)</p> Signup and view all the answers

The _____ of a process contains temporary data such as function parameters, return addresses, and local variables.

<p>Stack</p> Signup and view all the answers

A process control block _____.

<p>Includes information on the process's state</p> Signup and view all the answers

A process may transition to the Ready state by which of the following actions?

<p>All of the above (E)</p> Signup and view all the answers

A _____ saves the state of the currently running process and restores the state of the next process

<p>Admission (C)</p> Signup and view all the answers

When a child process is created, which of the following is a possibility in terms of execution or address space?

<p>All of the above (E)</p> Signup and view all the answers

A process that has terminated, but whose parent has not yet called wait(), is known as a _____ process.

<p>Zombie</p> Signup and view all the answers

The _____ process is assigned as the parent to orphan processes.

<p>Init</p> Signup and view all the answers

A new browser process is created by the Chrome browser for every new website that is visited.

<p>True (A)</p> Signup and view all the answers

Which of the following statements is true?

<p>Kernel (D)</p> Signup and view all the answers

Shared memory is a more appropriate IPC mechanism than message passing for distributed systems.

<p>False (B)</p> Signup and view all the answers

The shared buffer is implemented as a circular array with two logical pointers: in and out. The buffer is full when in==out.

<p>False (B)</p> Signup and view all the answers

In a _____ temporary queue, the sender must always block until the recipient receives the message.

<p>Zero capacity (C)</p> Signup and view all the answers

Under indirect communication, each process that wants to communicate must explicitly name the recipient or sender.

<p>False (B)</p> Signup and view all the answers

A socket is identified by an IP address concatenated with a port number.

<p>True (A)</p> Signup and view all the answers

A traditional (or heavyweight) process has a single thread of control.

<p>True (A)</p> Signup and view all the answers

A thread is composed of a thread ID, program counter, register set, and heap.

<p>True (A)</p> Signup and view all the answers

Each thread has its own register set and stack.

<p>True (A)</p> Signup and view all the answers

Which of the following involves distributing tasks across multiple computing cores?

<p>Task parallelism (A)</p> Signup and view all the answers

According to Amdahl's Law, what is the speedup gain for an application that is 60% serial and runs on a 4-core processor?

<p>1.43 (B)</p> Signup and view all the answers

It is possible to have concurrency without parallelism.

<p>True (A)</p> Signup and view all the answers

The _____ multithreading model multiplexes many user-level threads to a smaller or equal number of kernel threads.

<p>Many-to-Many (D)</p> Signup and view all the answers

The _____ model maps many user-level threads to one kernel thread.

<p>Many-to-One (C)</p> Signup and view all the answers

A _____ provides an API for creating and managing threads.

<p>Thread library (C)</p> Signup and view all the answers

A _____ uses an existing thread-rather than creating a new one-to complete a task.

<p>Thread pool (A)</p> Signup and view all the answers

When OpenMP encounters the #pragma omp parallel directive, it:

<p>Constructs a parallel region (A)</p> Signup and view all the answers

Grand Central Dispatch handles blocks by:

<p>Dispatch queue (B)</p> Signup and view all the answers

Which of the following would be an acceptable signal handling scheme for a multithreaded program?

<p>All of the above (D)</p> Signup and view all the answers

Cancellation points are associated with _____ cancellation.

<p>Deferred</p> Signup and view all the answers

Thread-local storage is data that

<p>Deferred (D)</p> Signup and view all the answers

_____ is the number of processes that are completed per time unit.

<p>Unique per thread (C)</p> Signup and view all the answers

_____ scheduling is approximated by predicting the next CPU burst with an exponential average of the measure

<p>Throughput (A)</p> Signup and view all the answers

Which of the following is true of multilevel queue scheduling?

<p>Shortest-Job-First (SJF) (A)</p> Signup and view all the answers

The _____ scheduling algorithm is designed especially for time-sharing systems.

<p>Each queue has its algorithm (B)</p> Signup and view all the answers

_____ involves the decision of which kernel thread to schedule onto which CPU.

<p>Round Robin (RR) (D)</p> Signup and view all the answers

_____ allows a thread to run on only one processor.

<p>System-contention scope (D)</p> Signup and view all the answers

The two general approaches to load balancing are _____ and _____

<p>Processor affinity (A), Load balancing (C)</p> Signup and view all the answers

Flashcards

What is kernel mode?

The core of the OS with complete control over the system.

What is an interrupt?

A software mechanism that signals the OS to handle an event.

What is System Call Interface?

The boundary between user programs and OS services.

What is a memory dump?

A memory area that a program can examine to determine the cause of the issue.

Signup and view all the flashcards

What is the stack of a process?

Temporary data associated with a process, such as function parameters and return addresses.

Signup and view all the flashcards

What is a zombie process?

The process is waiting for the parent to call wait().

Signup and view all the flashcards

What identifies a socket?

A unique identifier made up of an IP address and port.

Signup and view all the flashcards

What is task parallelism?

A way to improving application speed by processing tasks across multiple cores.

Signup and view all the flashcards

What is the #pragma omp parallel directive?

A programming construct that introduces parallelism into a program.

Signup and view all the flashcards

What is throughput?

A metric to describe the number of processes completed per time unit.

Signup and view all the flashcards

Study Notes

  • The operating system (OS) is software.
  • Interrupts can be triggered by hardware or software.
  • Kernel mode is referred to as supervisor mode, system mode, or privileged mode.
  • A timer can prevent a user program from never returning control to the operating system.
  • Instructions that modify entries in device-status tables should only be run in kernel mode.
  • Security and protection are not equivalent concepts.
  • Peer-to-peer systems have clients and servers that are not distinguished from one another.
  • A file-server system provides a file-system interface for clients to create and modify files.
  • The system call interface serves as the boundary between user programs and operating system services.
  • Touch screens serve as a user interface on mobile systems.
  • Cache memory is not a technique for passing parameters from an application to a system call.
  • System calls cannot be run in user mode.
  • Statically linked libraries are not conditionally loaded during program runtime.
  • Appropriately defining the various layers presents a major difficulty in designing a layered operating system.
  • A microkernel is a stripped-down kernel, allowing operating system services to be loaded dynamically.
  • A boot block typically stores the location and length of the rest of the bootstrap program.
  • An initial bootstrap program is not in the form of random-access memory (RAM).
  • When a program terminates abnormally, a dump of memory may be examined by a debugger to determine the cause.
  • Debugging involves finding and fixing errors in a system, not only in software.
  • The stack of a process contains temporary data such as function parameters, return addresses, and local variables.
  • A process control block includes information on the process's state.
  • A process may transition to the Ready state when a context switch occurs.
  • Creating a child process may result in concurrent execution, loading a new program, or duplicating the parent process.
  • A process that has terminated, but whose parent has not yet called wait(), is known as a zombie process.
  • The init process is assigned as the parent to orphan processes.
  • A new browser process is not created by the Chrome browser for every new website that is visited.
  • Shared memory is typically faster than message passing.
  • The shared buffer has zero capacity.
  • In a temporary queue, the sender does not always block until the recipient receives the message.
  • Under indirect communication, each process that wants to communicate is false.
  • Named pipes act like files.
  • A socket is identified by an IP address concatenated with a port number.
  • A traditional (or heavyweight) process has a single thread of control.
  • A thread is composed of a thread ID, program counter, register set, and stack.
  • Each thread needs its own stack and register set.
  • Task parallelism involves distributing tasks across multiple computing cores.
  • According to Amdahl's Law, the speedup gain for an application that is 60% serial and runs on a 4-core is 1.43.
  • Concurrency without parallelism is possible.
  • The many-to-many multithreading model multiplexes many user-level threads to a smaller or equal number of kernel threads.
  • The many-to-one model maps many user-level threads to one kernel thread.
  • A thread library provides an API for creating and managing threads.
  • A thread pool uses an existing thread – rather than creating a new one – to complete a task.
  • When OpenMP encounters the #pragma omp parallel directive, it constructs a parallel region.
  • Grand Central Dispatch handles blocks by using a dispatch queue.
  • Sending a signal to all threads would be an acceptable signal handling scheme for a multithreaded program.
  • Cancellation points are associated with deferred cancellation.
  • Thread-local storage is data that is unique per thread.
  • Throughput measures the number of processes completed per unit of time.
  • Scheduling is approximated by predicting the next CPU burst with an exponential average of the measure throughput.
  • In multilevel queue scheduling, each queue has its own scheduling algorithm.
  • System-contention scope involves the decision of which kernel thread to schedule onto which CPU.
  • Processor affinity is one of the two general approaches to load balancing.
  • Threads can run on multiple processors.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

Use Quizgecko on...
Browser
Browser