Exam h22 multiple choice q Flashcards

1
Q

Which one of the following statements is incorrect?

(a) Multiprogramming is possible in a single processor system
(b) Multiprogramming is possible in a multiprocessor system
(c) Multiprocessing is possible in a single processor system
(d) Multiprocessing is possible in a multiprocessor system
(e) All of the above
(f) None of the above

A

(c)Multiprocessing is possible in a single processor system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which one of the following scheduling algorithms is in general optimal for minimising average waiting time?

(a) Round robin
(b) First come first served
(c) Shortest job first
(d) All of the above
(e) None of the above

A

(c) Shortest job first

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which one of the following scheduling algorithms are non-preemptive?

(a) Round robin
(b) First come first served
(c) Earliest deadline first
(d) Shortest-remaining-time-first
(e) None of the above

A

(b) First come first served

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A page fault occurs when . . .

(a) A TLB miss occurs
(b) An interrupt occurs
(c) The requested page found in the main memory and is dirty
(d) The requested page found in the main memory and is clean
(e) None of the above

A

(e) None of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Consider a multiprocessor system that uses symmetric multiprocessing (SMP). Which one of thefollowing is correct about multiple processor scheduling in this system?

(a) Each processor in the system is self scheduling
(b) Each processor may have its own private queue of ready processes, and has a scheduler to
examine the ready queue and select a process to execute
(c) All processors may be in a common ready queue, and each processor has a scheduler to
examine the ready queue and select a process to execute
(d) All of the above
(e) None of the above

A

(d) All of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Consider a computer system that support logical cache. Which one of the following is correct?

(a) The logical cache locates between the memory management unit (MMU) and main memory
(b) The logical cache store data using main memory physical address
(c) The processor has direct access to the logical cache
(d) All of the above
(e) None of the above

A

(c) The processor has direct access to the logical cache

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Consider two processes, one for a web browser and one for word processor, competing for CPU time. Which scheduler will typically be responsible to schedule the two processes to the CPU?

(a) The long-term scheduler
(b) The mid-term scheduler
(c) The short-term scheduler
(d) Depends on the operating system

A

(c) The short-term scheduler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the most common way to utilise operating system functionality from a user program?

(a) Directly through system calls
(b) Indirectly through system libraries
(c) Implementing it from scratch without involving the operating system
(d) User programs typically do not need operating system functionality

A

(b) Indirectly through system libraries

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

You have developed some software in C for a Linux computer based on x86. Which other platforms will it be “easy” to port this to?

(a) Any computer based on x86
(b) Any operating system based on POSIX
(c) Any computer based on x86 running any operating system based on POSIX
(d) Any computer running any operating system

A

(b) Any operating system based on POSIX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is meant by “programming in hardware”?

(a) Old term for loading the program from a file
(b) The program is stored on a hard disk
(c) The program is stored on a punch card
(d) The program is in the form of hardware

A

Solution: The computer has to be programmed using wires
Svaret står ikkje oppført som ett valg….. Cry

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the “modern” way to transfer data inside a computer?

(a) Parallel bus point-to-point using packets
(b) Serial point-to-point connection using packets
(c) Parallel bus point-to-point without packets
(d) Serial point-to-point connection without packets
(e) None of the above

A

(b) Serial point-to-point connection using packets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which one of the following is a control and status register?

(a) Memory address register
(b) Instruction register
(c) Memory buffer register
(d) All of the above
(e) None of the above

A

(d) All of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly