ERODD HOME

Operating Systems CPSC 304
Homework on Chapters 6-9
Earl Rodd erodd@malone.edu Extension 8546 www.malone.edu/erodd

Name: ______________________________________

  1. Mark which of these measurements would be a meaningful measure of a (B)atch, (I)nteractive, or (R)eal-time operating system performance.

    1. ___ When user presses the PROCESS GUI button, 90% of the time next screen is delivered in 3 seconds or less.

    2. ___ Sales summary, accounting, payroll, credit card processing run in 2 hours.

    3. ___ The average time from a user submitting a request for an account balance and receiving it is 4.34 seconds.

    4. ___ The system requirement is that the adjustment calculation must ALWAYS be completed in less than .67 seconds.

  2. Check which are shared between LINUX and UNIX.

    1. ___ Source of the kernel.

    2. ___ C library function source code.

    3. ___ Language used for shell scripts.

    4. ___ The syntax of the shell "ls" command.

    5. ___ The source code used manage virtual memory.

  3. Characterize these systems as (B)atch, (I)nteractive, or (R)eal-time.

    1. ___ System to control a steel rolling mill - it adjusts the rollers to each piece as it comes through the mill.

    2. ___ Software supporting bank ATM machines.

    3. ___ Web server.

    4. ___ System run the 1st of every month by the Social Security Administration to create transaction files to send to banks for direct deposit for all Social Security recipients.

    5. ___ Automobile system which controls the fuel injection.

  4. Identify the Operating System Component (PM, DM, FM, or MM) for each of these system calls:

    1. ___ open

    2. ___ read

    3. ___ malloc

    4. ___ ioctl

    5. ___ fork

  5. When we say "the boot device", what does this mean (in technical terms)?

    __________________________________________________________

  6. Of the storage types in the chapter, which ones are "non-volatile", that is, they keep their data when the power is turned off?

    _____________ ______________ ______________ ____________ __________

  7. I once compared two Pentium machines, one 90MHz and one 150Mhz. Running a program with various complex math and data manipulations, but no disk or other I/O (except a final write to the screen with the answer), I found that the 90MHz machine ran as much as 30% faster than the 150MHz machine? Given what you have learned about storage hierarchy, what seems like a likely cause?

    ______________________________________________________________

  8. With modern operating systems, when we compile a "C++" program, the executable contains a number of library functions. Do these library functions contain code to directly access the hardware (e.g. disk drives)? ________

    Why or why not? ______________________________________