PROGRAMMING; EXAM 1 REVIEW WITH
CORRECT SOLUTIONS
A user in a UNIX/Linux system can run more than one program at a time - ANSWER-
In a UNIX/Linux system, programs interact with the kernel via system calls - ANSWER-
UNIX/Linux views everything as files - ANSWER-
Programs available in bash shell scripts are.. - ANSWER-until statements
case statements
reading user input
functions
A race condition is.. - ANSWER-when two or more processes try to use the same
resource at the same time
To work, race conditions need.. - ANSWER-concurrency
shared object conditions
change state conditions
The UNIX/Linux command, rmdir.. - ANSWER-removes an empty directory
As a process executes, it changes state - ANSWER-
shell is the.. - ANSWER-interface that sits between the user and the UNIX/Linux system
During the process creation, a parent process creates children processes, which create
other processes, forming a ??? of processes - ANSWER-
The *wait()* system call.. - ANSWER-suspends execution of the calling process until
one of its children terminates
A process in the Ready State is.. - ANSWER-waiting to be assigned to a processor
When CPU switches to another process, the system must.. - ANSWER-save the state
of the old process
load the saved state for the new process
*grep*.. - ANSWER-allows the user to search for occurrences of specific strings within
files and print them if found