click below
click below
Normal Size Small Size show me how
COP 4610 Midterm Rev
Review of Midterm for Operating systems and Multithreaded programming
| Question | Answer |
|---|---|
| Name an operating system that is not open source: | Windows XP |
| In what way is an operating system like a government? | It creates an environment within which other programs can do useful work |
| Embedded computers typically run on a _______ operating system. | real-time |
| a clustered system _______ . | gathers together multiple CPUs to accomplish computational work. |
| A ____ is an example of systems program. | command interpreter. |
| Microkernels use _____ for communication. | message passing |
| ______ is/are not a technique for passing parameters from an application to a system call. | Cache memory. |
| When communicating with sockets, a client process initiates a request for a connection and is assigned a port by the host computer. Which of the following would be a valid port assignment for the host computer? | 1625 |
| State the priority relationship of messages in a Mach OS. | All messages have the same priority. |
| A process control block _________ . | includes information on the process's state |
| The list of processes waiting for a particular I/O devices is called a(n) ________ . | device queue |
| Which of the following statements regarding threads is false? | Sharing is automatically provided in Java threads. |
| Signals can be emulated in windows through _________. | asynchronous procedure calls |
| Pthreads refers to _______ . | a specification for thread behavior. |
| A _____ provides an API for creating and managing threads. | thread library. |
| The default scheduling class for a process in Solaris is ________ . | time sharing |
| What is the numeric priority of a Windows XP thread in the BELOW_NORMAL PRIORITY_CLASS with NORMAL relative priority? | 6 |
| The _____ scheduling algorithm is designed especially for the time-sharing systems. | RR |
| What is the numeric priority of a Windows XP thread in the NORMAL_PRIORITY_CLASS with HIGHEST relative priority? | 10 |
| A spinlock ________ . | does not require a context switch when a process must wait on a lock |
| What is the purpose of the mutex semaphore in the implementation of the bounded-buffer problem using semaphores? | it ensures mutual exclusion. |
| _______ is not a technique for handling critical sections in operating systems on modern architectures. | Peterson's solution |
| The first readers-writers problem ______. | requires that no reader will be kept waiting unless a writer has already obtained permission to use the shared database. |
| (TRUE/FALSE):Processors for most handheld devices run at a fraction of the speed of a processor in a PC | True. |
| (TRUE/FALSE):A dual-core system requires each core has its own cache memory. | False. |
| (TRUE/FALSE):The operating system kernel consists of all system and applications programs in a computer. | False. |
| (TRUE/FALSE):Many operating systems merge I/O devices and files into a combined file because of the similarity of system calls for each | True. |
| (TRUE/FALSE):The virtual-machine[VM] concept is designed to insulate various system resources from processes running on the VM. | True. |
| (TRUE/FALSE):In general, Windows system calls have longer, more descriptive names and UNIX system calls use shorter less descriptive names. | True. |
| (TRUE/FALSE):A socket is identified by an IP address concatenated with a port number. | True. |
| The difference between a program and a process is that a program is an active entity while a process is a passive entity. | False. |
| (TRUE/FALSE):Named pipes continue to exist in the system after the creating process has termined. | True. |
| A thread is composed of a thread ID, program counter, register set, and heap. | False. |
| (TRUE/FALSE):A tradition(or heavyweight) process has a single thread of control. | True. |
| (TRUE/FALSE):It is possible to create a thread library without an kernel-level support | True. |
| (TRUE/FALSE):The most complex scheduling algorithm is the multilevel feedback-queue algorithm. | True. |
| (TRUE/FALSE):In preemptive scheduling, the sections of code affected by interrupts must be guarded from simultaneous use. | True. |
| (TRUE/FALSE):SMP systems that use multicore processors typically run faster than SMP systems that place each processor on separate cores. | True. |
| (TRUE/FALSE):Monitors are a theoretical concept and are not practiced in modern programming languages. | False |
| (TRUE/FALSE):Every object in Java has associated with it a single lock. | True. |
| (TRUE/FALSE):The local variables of a monitor can be accessed by only the local procedures. | True. |
| What code implements correctly the simple semaphore operations wait(S) and signal(S) on a global variable S? | wait(S){ while (S <= 0); --S} signal(S) {++S;} |
| What is the context switch time associated with swapping if a disk drive with a transfer rate of 2 MB/s is used to swap out part of a program that is 200 KB in size? Assume that no seeks are necessary and that average latency is 15ms | 133ms |
| Describe the differences between physical, virtual, and logical memory. | PhyMem defines hardware used for memory: Vmem is created by the system when p requires more memory than available. Substitutes hard disk memory, using as main memory. LogM Abstracts pMem allowing programmer to work without dealing with memory limits. |
| Desicribe three general methods used to pass parameters to the operating system during system calls. | 1. Registers 2. table / block o' memory 3. Stack |