Looking for IN1011 Operating Systems (PRD2 A 2024/25) test answers and solutions? Browse our comprehensive collection of verified answers for IN1011 Operating Systems (PRD2 A 2024/25) at moodle4.city.ac.uk.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
A process that requires 1.3 MB of space is swapped to a hard disk. The transfer rate to the disk is 134.8 MB/s and there is a further latency of 3.2 microseconds. Calculate the total Context Switch Swapping time (that is swap out and swap in) of this process. Write down your answer in milliseconds.
A memory management scheme has a partition allocation with a fixed page size of 256 bytes. If a process has a size of 62538 bytes, calculate the internal fragmentation in bytes.
Consider the sample directory listing shown in the figure below.
Which file or directory has the most links?
29 processes P(1), ..., P(29) are concurrently executing on a system (see the pseudocode above with P(n)=P(29)). The shared variable called count is initialised to 6, while the semaphores s1, s2, ... , s(n-1), sn are all initialised to 0. What is the value of count when process P(16) executes semsignal(s15)?
Three processes A, B and C are admitted into the ready queue by the long-term scheduler. The processes are admitted -- first process C, then B, and then A -- without any delay between the admissions. The short-term scheduler uses a Round-Robin scheduling policy to assign processes to run on the CPU. The time quantum is 4ns. The CPU burst times are 48ns, 72ns and 92ns, for A, B and C respectively. Assume that the processes make no I/O requests and all of them successfully complete. You may also assume that no other processes or OS activity are important for your computations.
Based only on the information given, what is the average turnaround time (in ns) for these 3 processes? Give your answer to 2 decimal places.
A process that requires 3.8 MB of space is swapped to a hard disk. The transfer rate to the disk is 138.8 MB/s and there is a further latency of 8.1 microseconds. Calculate the total Context Switch Swapping time (that is swap out and swap in) of this process. Write down your answer in milliseconds.
A memory management scheme has a partition allocation with a fixed page size of 128 bytes. If a process has a size of 77239 bytes, calculate the internal fragmentation in bytes.
The following question may require you to experiment with the command mv or read the man page for mv.
Assume that file apples
exists in the current directory, and file oranges
does not, what is the effect of the command mv apples oranges
?
Consider the sample directory listing shown in the figure below.
Which file or directory has the most links?
Give your answer either as a simple decimal (eg 0.0075) or using E-notation (eg 7.5E-3, which is another way of writing 7.5x10
-3).Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!