Professional Documents
Culture Documents
that is, when the computer is shut down, the contents of the memory are lost.
In contrast, the contents of disk memory are retained even when the computer
system is shut down. Main memory is also referred to as real memoryor primary memory.
I/O modules:Move data between the computer and its external environment.
3. in general terms, what are the four distinct actions that a machine instruction can specify(4
marks)
With this as a foundation, processor designers have proposed several machine instructions
that carry out two actions atomically,such as reading and writing or reading and testing, of a
single memory location with one instruction fetch cycle.
kernel:A portionof the OS is in main memory which contains the most frequently used functions
in the OS and, at a given time.
multiprogramming: refers to expanding memory to hold three, four, or more programs and
switch among all of them.
swapping: removal of the process from the memory and make space for other processes,
suspended process stored in the secondary storage.
time slice:is the maximum amount of time that a process can execute before being interrupted.
round-robin scheduling technique: strategy to give each process in the queue some time in
turn and employs a circular queue.
multiprocessor:
multicore processor: combines two or more processors (called cores) on a single piece of silicon
(called a die).
10. list 8 elements that uniquely characterize a process and a process control block:(8 marks)
Identifier: A unique identifier associated with this process, to distinguish it from all other
processes.
Context data: These are data that are present in registers in the processor while the
process is executing.
I/O status information:Includes outstanding I/O requests, I/O devices (e.g., disk drives) assigned
to this process, a list of files in use by the process, and so on.
Accounting information:May include the amount of processor time and clock time used, time
limits, account numbers, and so on.
11. what resources are typically shared by all of the threads of a process:(4 marks)
1. Thread switching does not require kernel mode privileges because all of the thread
management data structures are within the user address space of a single process.
Therefore, the process does not switch to the kernel mode to do thread management. This
saves the overhead of two mode switches (user to kernel; kernel back to user).
2. Scheduling can be application specific. One application may benefit most from a simple
round-robin scheduling algorithm, while another might benefit from a priority-based
scheduling algorithm. The scheduling algorithm can be tailored to the application without
disturbing the underlying OS scheduler.
3. ULTs can run on any OS. No changes are required to the underlying kernel to support ULTs.
The threads library is a set of application-level functions shared by all applications.
C:\Users\STUDENT.student-PC.001>pwd
C:\Users\STUDENT.student-PC.001>mkdir mookho
C:\Users\STUDENT.student-PC.001>cd users
C:\Users\STUDENT.student-PC.001>cd mookho
C:\Users\STUDENT.student-PC.001\mookho>ls
C:\Users\STUDENT.student-PC.001\mookho>dir
Directory of C:\Users\STUDENT.student-PC.001\mookho
0 File(s) 0 bytes
C:\Users\STUDENT.student-PC.001\mookho>cd
C:\Users\STUDENT.student-PC.001\mookho
C:\Users\STUDENT.student-PC.001\mookho>xcopy \Users\STDENT.student-PC.001\mookho
\User\STUDENT.student-PC.001\MUSIC
0 File(s) copied
\MUSIC
C:\Users\STUDENT.student-PC.001\mookho>cd STUDENT.student-PC.001
C:\Users\STUDENT.student-PC.001\mookho>pwd
C:\Users\STUDENT.student-PC.001>delete mookho
C:\Users\STUDENT.student-PC.001>del/mookho
C:\Users\STUDENT.student-PC.001>cd \Users\STUDENT.student-PC.001\mookho
C:\Users\STUDENT.student-PC.001\mookho>del/mookho
C:\Users\STUDENT.student-PC.001\mookho>del -d mookho
C:\Users\STUDENT.student-PC.001\mookho>del \Users\STUDENT.student-PC.001\mookho
C:\Users\STUDENT.student-PC.001\mookho>del \Users\STUDENT.student-PC.001\mookho
C:\Users\STUDENT.student-PC.001\mookho>cd \Users\STUDENT.student-PC.001
C:\Users\STUDENT.student-PC.001>del \Users\STUDENT.student-PC.001\mookho
C:\Users\STUDENT.student-PC.001>cd \Users\STUDENT.student-PC.001\mookho
C:\Users\STUDENT.student-PC.001\mookho>close
C:\Users\STUDENT.student-PC.001\mookho>diskpart
Access is denied.
C:\Users\STUDENT.student-PC.001\mookho>show disk
C:\Users\STUDENT.student-PC.001\mookho>cd \Users\STUDENT.student-PC.001
C:\Users\STUDENT.student-PC.001>mkdir rapelang
C:\Users\STUDENT.student-PC.001>cd \Users\STUDENT.student-PC.001\rapelang
C:\Users\STUDENT.student-PC.001\rapelang>