1 / 5

Example calculations for I/O Bus data transfer

Example calculations for I/O Bus data transfer. In a multitasking environment : what is a timeslice (quantum)? what is a context switch?

hyatt-rice
Download Presentation

Example calculations for I/O Bus data transfer

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Example calculations for I/O Bus data transfer In a multitasking environment : what is a timeslice (quantum)? what is a context switch? When a large number of processes (jobs) are multitasking the actual length of time spent on each process is determined by the O/S specifications, and the term that is often used to describe it is the ‘quantum’ or a timeslice. The actual changeover of the CPU executing one job and changing over to another is generally referred to as context switch.

  2. What is a timeslicing scheduling policy? A time slicing scheduling policy relies on the O/S allocating each job a predefined time slice (Quantum) which is typically 1ms-10ms. Processes are assigned this quantum which must not be exceeded. As soon as the time quantum has been reached, an interrupt occurs and the executing process is placed at the back of the FIFO queue. A hardware timer that generates an interrupt at pre-set intervals usually provides the time quantum. This policy is pre-emptive which only occurs at expiry of quantum time.

  3. For an 8-bit ISA I/O bus, running at the speed of 8.3MHz calculate the following: • Bandwidth of the bus. • The amount of time it would take to transfer 4Mbytes of raw data on this I/O bus. • Calculate the amount of time it would take to transfer 4Mbytes of raw data on a 64-bit, FSB running at 333MHz.

  4. The file and print server on your network has an I/ O bus which is 16-bits wide, operating at 66MHz. • How long would it take to transfer 200MBytes of print data (i.e. single job) on this bus? • If you have 50 users connecting to the file server and each of these is transferring 50Mbytes of data (i.e. 50 separate jobs). How long would it take for each of these jobs to complete? • How long would each job have to wait in this sequence of 50 jobs?

  5. Compare how scheduling jobs sequentially on a FCFS basis and scheduling each job using a 10mS timeslice figure on the Quality of service to the user. • Explain with justification the scheduling policy that you would recommend in order to manage the above data transfer on the server I/O bus. • If the context switching time is 50 micro seconds, calculate the amount of time that it would take to complete all the jobs identified above for each scheduling policy.

More Related