Professional Documents
Culture Documents
Assignment # 02 Deadline
18/01/2024
Fall 2023
Please carefully read the following instructions before attempting the assignment.
You should consult the recommended books to clarify your concepts as handouts are not sufficient.
Images and tables can be inserted using the following highlighted option in the interface .
OBJECTIVE
The objective of this assignment is to provide hands-on experience in the:
Deadlock Detection
Resource Allocation Graph
Memory management
NOTE
No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding
or internet malfunctioning etc.). Hence refrain from uploading assignments in the last hour of the deadline. It is
recommended to upload the solution at least two days before its closing date.
If you people find any mistake or confusion in the assignment (Question statement), please consult with your
instructor before the deadline. After the deadline, no queries will be entertained in this regard.
Resource Instances
One instance of resource type R1
One instance of resource type R2
One instance of resource type R3
One instance of resource type R4
Questions No 02 05 marks
Suppose we have a two-pass compiler with the given specification and there is a program code that is longer
than the available memory size. According to the Overlays concept, calculate the memory size for two
passes by considering the following specifications.
2-Pass assembler/compiler
Available main memory: 170k
Code size: 250k
o Common routines …... 30k
o Symbol table ………… 20k
o Overlays Driver……….20k
o Pass 1 ……………….. ?
o Pass 2 ……………….. ?
Questions No 03 05 marks
Considering the following parameters calculate the effective memory access time Teffective.
The End