Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Operating Systems 1. The operating system is A. Application software. B. Hardware. C. System software. D. A user program. 2. A process can be terminated

Operating Systems image text in transcribed
image text in transcribed
image text in transcribed
1. The operating system is A. Application software. B. Hardware. C. System software. D. A user program. 2. A process can be terminated due to A. normal exit C. fatal error B. killed by another process D. all of the mentioned 3. The degree of multi-programming is : A. the number of processes executed per unit time B. the number of processes in the ready queue C. the number of processes in the I/O queue D. the number of processes in memory 4. When a process is created using the classical fork() system call, which of the following is not inherited by the child process? A. User ID B. Process ID C. Process group ID D. None of the above 5. The threading model supported by the Linux operating system is A. one-to-one B. one-to-many C. many-to-one D. many-to-many 6. In a system where Round Robin is used for CPU scheduling, the following is TRUE when a process cannot finish its computation during its current time quantum? A. The process will terminate itself. B. The process will be terminated by the operating system. C. The process's state will be changed from running to blocked. D. None of the above. 7. Which of the following statements regarding system calls is TRUE? A. System calls are functions defined as part of the operating systems. B. System calls are functions that run in user mode in a dual mode system. C. System calls cannot be used by the programmers directly, and the programmers have to use the library functions. D. None of the above. 8. Which of the following thread/process state transitions is ILLEGAL? A. Ready to Running B. Running to Ready C. Blocked to Running D. Blocked to Ready 9. The following code is compiled and run on a modern Linux machine. Assuming fork() never fails, how many times will the message "Hello!" be displayed? int main() { int a = 0; int fork_return - fork(); a ++; if (fork_return == 0) { cout 0) cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions

Question

9. Describe the characteristics of power.

Answered: 1 week ago

Question

10. Describe the relationship between communication and power.

Answered: 1 week ago