Computer Science EngineeringHardISRO SC
Free partitions (in KB, in address order) are 200, 500, 150, 300, 150. Processes of sizes 420, 350, 420, 350 KB arrive in this order. Using worst-fit (a partition left over after allocation stays available with its reduced size), the partition numbers (1-based) chosen for the four processes in order are (X = cannot be allocated)
- A. 1,2,3,4
- B. 2,2,3,3
- C. X,X,X,X
- D. 2,X,X,X
Correct answer: D. 2,X,X,X
Simulating worst-fit while reducing partitions after each allocation gives 2,X,X,X.
Practise more OS, DBMS, Networks & Computer Architecture (ISRO CS) questionsOS, DBMS, Networks & Computer Architecture (ISRO CS): notes and key points
More OS, DBMS, Networks & Computer Architecture (ISRO CS) questions
- A B+ tree node (block 4096 bytes) holds up to p child pointers of 8 bytes and p-1 keys of 12 bytes. The order p (max pointers per node) is
- A B+ tree node (block 2048 bytes) holds up to p child pointers of 6 bytes and p-1 keys of 10 bytes. The order p (max pointers per node) is
- R(A,B,C,D) with FDs AB->C, C->D, D->A. The closure AB+ is
- R(A,B,C,D,E) has the functional dependencies AB->C, C->D, D->B, E->A. The number of candidate keys is
- R(A,B,C,D) with FDs A->B, B->C, C->D, D->A. The closure AB+ is
- R(A,B,C,D,E) with FDs A->BC, CD->E, B->D, E->A. The closure AB+ is