Podcast
Questions and Answers
Which of the following statements are correct?
Which of the following statements are correct?
- a. Parallel execution is possible on a single processor.
- b. Concurrency is about dealing with lots of things at once. Parallelism is about doing lots of things at once. (correct)
- c. Concurrent execution and parallel execution can be combined. (correct)
- d. Concurrent execution is possible on a single processor. (correct)
Which of the following statements are true?
Which of the following statements are true?
- a. A kernel has to exploit concurrency in order to be efficient.
- b. A hardware trap caused by dereferencing an invalid pointer is synchronous to a running process. (correct)
- c. A software interrupt generated by a terminal program on user request is asynchronous to a running process. A system call is asynchronous to a running process.
- e. The kernel handles asynchronous interrupts that may not be visible by any running processes. A system call is asynchronous to a running process. (correct)
How is a C programmer expected to handle runtime error situations?
How is a C programmer expected to handle runtime error situations?
- The function strerror() converts an error code into a string describing the error code. (correct)
- b. Unhandled runtime errors lead to exceptions that are handled by the main() function if not caught elsewhere.
- c. The function void perror(const char *s) defined in stdio.h can be used to write a message s to the standard error stream followed by a message describing the last error encountered during a call to a system or library function. e. The file descriptor of the standard output is 0 and the file descriptor of the standard error is 1. (correct)
- d. Error messages do not belong on the standard output and should be written to the standard error.
Which statements are true for libraries and dynamic linking?
Which statements are true for libraries and dynamic linking?
Which of the following statements about operating system architectures are correct?
Which of the following statements about operating system architectures are correct?
How do system calls and programs report runtime error conditions?
How do system calls and programs report runtime error conditions?
Which of the following statements are correct?
Which of the following statements are correct?
Which statements are correct for standard input, output, error streams?
Which statements are correct for standard input, output, error streams?
Which of the following functions are direct system calls?
Which of the following functions are direct system calls?
Which of the following statements are correct?
Which of the following statements are correct?
Flashcards
Concurrency vs. Parallelism
Concurrency vs. Parallelism
Concurrency deals with managing multiple tasks seemingly at once, while parallelism actually performs multiple tasks simultaneously.
Hardware trap - invalid pointer
Hardware trap - invalid pointer
A hardware trap caused by a bad pointer reference directly impacts the running process's execution synchronously.
Error handling - C programmer
Error handling - C programmer
The function strerror()
changes an error code into a readable error message string.
Dynamic linking - libraries
Dynamic linking - libraries
Signup and view all the flashcards
Modular OS architecture
Modular OS architecture
Signup and view all the flashcards
Error code - system calls
Error code - system calls
Signup and view all the flashcards
OS architecture advantage
OS architecture advantage
Signup and view all the flashcards
Standard input/output/error - terminal
Standard input/output/error - terminal
Signup and view all the flashcards
Direct system calls - example
Direct system calls - example
Signup and view all the flashcards
Kernel modules execution
Kernel modules execution
Signup and view all the flashcards