logo

Crowdly

IN1011 Operating Systems (PRD2 A 2024/25)

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!

Password of the day:

View this question

x is a whole number greater than 1. What is x left parenthesis x plus 1 right parenthesis in base x plus 1 hint: x is less than x plus 1

View this question

A LINUX program uses POSIX-compliant API methods (i.e. pthread_create, pthread_join, etc.) to create and synchronise 14 threads. How many PCBs does the OS need, to manage these threads' executions? 

View this question

Using the information in the table below, what is the parent process ID for the process that printed this table to the Linux shell?

A table of Linux process information

View this question

Under the 5-state process model, processes with IDs 3, 7, 15, 20 and 24 are executing on a system. They arrived in the ready queue in the order they are listed, starting with process 3. The processes do not fail and do not make I/O requests. The short-term scheduler uses the following preemptive priority scheduling algorithm (processes with larger priority numbers have higher priority):

- the process with the highest priority runs on the CPU (FCFS is used, in case of a tie);

- a process has priority 0 when it first enters the ready queue;

- the priorities of all processes in the ready queue continuously decrease at the same rate;

- the priority of the process running on the CPU also continuously decreases, but more slowly than the priorities for processes in the ready queue.

Based only on this information, what is the order in which the processes finish executing?

0%
0%
0%
0%
0%
View this question
Assume the 5 state process model. Suppose 13 processes have been admitted from the "new" state and are all executing on a system with a single CPU, where 9 of these processes make I/O requests. Assume that at any given time, one of these processes is assigned to the CPU. Based only on this information, before any of these processes terminate, what is the minimum number of processes that can be in the:

1) ready state;

2) blocked state?

0%
0%
0%
0%
0%
View this question

Suppose 20-bit instructions are copied to a CPU's instruction register, and suppose that each instruction dedicates the first 6 bits for the "opcode", with the remaining bits for specifying a memory location. What is the total number of possible memory locations that could be referenced by these instructions?

View this question

A number is represented as 14 (in base x) and 110 (in base y). You are told x minus y equals 5. What is x

View this question

A hypothetical CPU executes instructions formatted in binary. The opcode in these instructions can be represented by 2 octal digits (i.e., each digit is in base 8). Which of the following options is a valid opcode format in binary that the CPU expects?

View this question

An instruction for a hypothetical CPU is 1940 in hexadecimal. The "19" is the opcode. How many bits are used to represent the opcode in this architecture? Give your answer in bytes.

View this question

Want instant access to all verified answers on moodle4.city.ac.uk?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!