


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A closed-book exam for a university-level computer science course, cs 570, focusing on input/output systems and file management. The exam includes multiple-choice questions and problems related to dma transfers, i/o requests, disk geometry, disk scheduling algorithms, and file organization. Students are required to write neatly and legibly, and only a half letter-size page cheat-sheet is allowed.
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



CS 570 HOUR TEST #2 July 12, 2001
How many I/O requests will make the modem thread TM : _______________________
How many interrupts will generate the modem controller: _______________________
How many I/O requests will make the disk thread TD : _______________________
How many interrupts will generate the disk controller: _______________________
Suppose the disk has 200 cylinders and the initial position of the head is at 100 (head is moving from lower to higher cylinder numbers; in C-SCAN algorithm the head is picking up the requests while moving in that direction). Write the sequence of requests served for the following disk scheduling algorithms:
(a) FCFS: _____________________________________________________
(b) SSTF: _____________________________________________________
(c) SCAN: ____________________________________________________
(d) C-SCAN: __________________________________________________
File of size How many data blocks are necessary for this file
Does this file require direct allocation, or one-, two-, or three-level indexing)
How many index blocks are used for this file
12 Kbytes
49154 bytes
5000 Kbytes
5 Gbytes
// File p.cpp
#include <stdio.h> #include <iostream.h> #include <windows.h>
void T1(void) {
........... statement1; ........... statement2; ........... }
void T2(void) {
........... statement3; ........... statement4; ........... }
void T3(void) {
........... statement5; ........... statement6; ........... }
int main() { HANDLE h1 = CreateThread(0,0, (LPTHREAD_START_ROUTINE)T1,0,0,0); HANDLE h2 = CreateThread(0,0, (LPTHREAD_START_ROUTINE)T2,0,0,0); HANDLE h3 = CreateThread(0,0, (LPTHREAD_START_ROUTINE)T3,0,0,0);
......... ........................
// End of file p.cpp