CSC Operating Systems

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

In Process Control Block (PCB), information associated with each process are contained, including what four things?

Memory Management scheduling, program counter, local variables, CPU scheduling information

Cooperating processes need Inter-process Communication (IPC). Two basic IPC models are what?

Message passing and shaped memory model

Mac OS X Kernel, partly based on Mach that is an example of ____, structures the operating system by removing nonessential components form the kernel and implementing them as user-level programs, leading to a smaller and reliable kernel

Microkernel

What is System calls?

Requests for operating system service

From the perspective of synchronization, blocking send/receive is considered ____ while non-blocking send/receive is consider _____

Synchronous, asynchronous

What is Module?

That can be mounted to OS kernel

What is booting?

The process of loading the operating system kernel

T/F An interrupt vector is an address that indexed to an interrupt handler

True

T/F In Unix, system call fork() creates the new process

True

T/F In all modern computers, before fetching a new instruction, the CPU Will check if there are any interrupts to be handled

True

T/F RPC provides a stub on the client side, a separate one from each remote procedure

True

T/F The client[server architecture is not the preferred model for implementing operating systems these days

True

T/F The remote method of invocation (RMI) allows a thread/process to invoke a method on a remote object

True

T/F Wait() returns the process identifier of a terminated child

True

T/F a short-term scheduler selects which process has to be executed next and allocates CPU

True

The objective of multi-programming is to a) have some process running at all times b) have multiple programs waiting in a queue ready to run c) to minimize CPU utilization d) none of the mentioned

a) have some process running at all times

What is a long term scheduler? a) it selects which process has to be brought into the ready queue b) It selects which process has to be executed next and allocates CPU c) It selects which process to remove from memory by swapping d) none of the mentioned

a) it selects which process has to be brought into the ready queue

The main function of the command interpreter is a) to get and execute the next user-specified command b) to provide the interface between the API and application program c) to handle the files in operating system d) none of the mentioned

a) to get and execute the next user-specified command

What is the ready state of a process? a) when process is scheduled to run after some execution b) when process is unable to run until some task has been completed c) when process is using the CPU d) none of the mentioned

a) when process is scheduled to run after some execution

The process Control Block is: a) process type variable b) Data structure c) A secondary storage section d) a Block in memory

b) Data structure

How does the software trigger an interrupt? a) sending signals to CPU through bus b) executing a special operation called system call c) executing a special program called system program d) executing a special program called interrupt trigger program

b) executing a special operation called system call

A virtual machine system a) offers no protection to the various system resources b) is ideal for operating system research and development c) needs no physical resources d) does not support multitasking

b) is ideal for operating system research and development

What is a trap/exception? a) hardware generated interrupt caused by an error b) software generated interrupt caused by an error c) user generated interrupt caused by an error d) none of the mentioned

b) software generated interrupt caused by an error

An important goal of an operating system is to a) translate programs written in higher programming language to machine language b) bind the user code with library routines and make an executable code c) allocate and manage resources in the computer system d) slow down execution of programs so users are forced to buy systems with more RAM

c) allocate and manage resources in the computer system

A pipe in UNIX Shell command allows a) taking standard input from a file b) sending standard output to a file c) connecting the standard output of a process to the standard input of another process d) leaking out information to hackers

c) connecting the standard output of a process to the standard input of another process

If all processes I/O Bound, the ready queue will almost always be ____ And the short term scheduler will have a ___ to do. a) full, little b) full, lot c) empty, little d) empty, lot

c) empty, little

What is a medium-term scheduler? a) it selects which process has to be brought into the ready queue b) it selects which process has to be executed next and allocates CPU c) it selects which process is remove from memory by swapping d) none of the mentioned

c) it selects which process is remove from memory by swapping

With ____ only one process can execute at a time, meanwhile all other process are waiting for the processor. With ____ more than one process can be running simultaneously each on a different processor. a) multiprocessing, multiprogramming b) multiprogramming, uniprocessing c) multiporgramming, multiprocessing d) uniprogramming, multiprocessing

c) multiporgramming, multiprocessing

In UNIX, the return value for the fork system is ___ for the child process and ____ for the parent process a) a negative integer, zero b) zero, a negative integer, c) zero, a nonzero integer d) a nonzero integer, zero

c) zero, a nonzero integer

Consider a personal computer in which keyboard interrupts arrive at the rate 10 interrupts/sec. If interrupt processing takes 20 * 10^-6 seconds, what percentage of the CPU time is spent on interrupt processing? a) 10% b) 2.0% c) 0.10% d) 0.02%

d) 0.02%

UNIX is an example of a a) a single user, single tasking operating system b) a single-user, a multitasking operating system c) a multi-user, single tasking operating system d) a multi-user, multitasking operating system

d) a multi-user, multitasking operating system

Cloud computing includes: a) private cloud b) public cloud c) Hybrid cloud d) all of the mentioned

d) all of the mentioned

Messages sent by a process a) have to be a fixed size b) have to be a variable size c) can be fixed or variable sized d) none of the mentioned

c) can be fixed or variable sized

Which item below is not about Cloud computing: a) IaaS b) PaaS c) SaaS d) AaaS

d) AaaS

T/F A process that is based on IPC mechanism which executes on a different systems and can communicate with other processes using message based communication, is called Remote Procedure Call

True

T/F In operating system, each process has its own address space and global variables

True

What is HALT?

A privileged instruction, if dual mode operation is supported

What is interrupt vector?

A table of starting addresses of interrupt service routines

In Producer-Consumer Model, the size of ____ is considered significant to the throughput of the whole system.

Buffer

What is PCB?

Data structure to maintain information about a process.

What is Deadlock?

Each process needs a resource held by another process and hence all of them wait indefinitely, unable to make any progress

T/F A process stack does not contain function parameters

False

T/F Change to user mode from system mode is an example of non-privileged instructions

False

T/F The OSX has monolithic kernel

False

T/F To differentiate the many network services, RPC supports the HTTP are used

False

T/F To resolve the problem of data representation on a different system RPC's define machine depending representation of data

False

T/F Windows 10 does not support multitasking since it is meant to be used on a personal computer

False

In indirect communication, messages are directed and received from what?

Mailbox

T/F cascading termination refers to termination of all child processes before the parent terminates normally

True

To access the services of operating system, the interface is provided by the a) systems calls b) API c) Library d) assembly instructions

a) systems calls

What are three kinds of hardware support the can allow for efficient implementation of operating system functions?

CPU, DMA, Interrupt Register

T/F I/O polling refers to that CPU watches the I/O control bit randomly to avoid a loop and save CPU resources

False

T/F Kernel is made of various modules which cannot be loaded in running operating systems

False

T/F The main function of the command interpreter is to provide the interface between the API and application program

False


Ensembles d'études connexes

F446 Chapter 3: Finance Companies

View Set

Chem 20: Ch. 13 Carbohydrates Study Guide

View Set

Microsoft Office: Excel Chapter 1 Vocabulary

View Set

7.3- 7.4 The French Revolution and Napoleon

View Set

OB Chapter 41; The Child with Gastrointestinal Dysfunction

View Set

International Business Mid-Term Exam Study Guide

View Set