Retro printing press University of Washington Computer Science & Engineering
 CSE 451 Homework - Spring 2004
  CSE Home   About Us    Search    Contact Info 

 Main
 Resources
 Lecture slides
 Homework
 Projects
 Quizzes
 Exams
 Administration
 Bulletin Board
 Anonymous feedback
   

Homework 5

Assigned: Thursday, May 6th
Due: NOT DUE, but you are responsible for knowing how to solve the problems.

Problems from the text:
5.3, 5.4, 5.5, 5.6, 7.1, 7.8, 7.15, 7.17, 7.19, 8.9, 8.13, 6.4, 6.6, 6.10

Homework 4

Assigned: Tuesday, April 27th
Due: Monday, May 3rd, 11:00am
PDF


Homework 3: From reading assignment

Assigned: Monday April 12th
Due: Monday, April 19th, 11:00am

Problems from the text:
9.7, 9.9

Problems from IA-32 reference:
  1. On the x86, how would you achieve the following:
    1. Two address spaces sharing an identical code segment.
    2. Two address spaces sharing a page of memory at the same address
    3. Two address spaces sharing a page of memory at a different address
    4. One address space with a code segment that can not be written through code addresses, but which can be written through a separate range of data addresses.
    5. Set the current address space
    6. Save the current address space
    7. Swap the running address space for one that is not running
    For each, describe in words and draw a picture showing the structure and relevant contents of the appropriate tables and registers. See Fig 3.12 for an example.

Reading assignment

From the book: Chapter 9 and Chapter 10 (up to and including 10.2).
From IA-32 reference: Volume 3, Chapter 3.

Turn-in instructions: Bring print out to class on Monday.


Homework 2: From the book

Assigned: Monday April 5th
Due: Monday, April 12th, 11:00am

Problems from the text:
1.5, 1.8
2.9, 2.10
3.11, 3.12, 3.15

Problems from reading:
1. Trace the steps of what happens at the instruction and architecture level when a non privileged (user level) program executes an INT 42 when the processor is running in protected mode. Your description should cover components such as the IDTR, IDT, PC, processor mode, SP, as well as any others that are necessary to make your description clear.

2. Normally, an interrupt/exception returns to the instruction at or following the instruction which was executing when the interrupt/exception occurred. In the pursuit of a new research result, you have decided to build an OS which always resumes execution at the PRECEDING instruction. Describe, in english, the strategy you will follow to achieve this result.

3. Is write access to the IDTR privileged? If so, how come. If not, why is this ok.

Reading assignment

On the resource page you will find links to the IA-32 reference. Read Volume 1, section 6.4 and Volume 3, Chapter 5.

Turn-in instructions: Bring print out to class on Monday.


Homework 1: C Programming

Assigned: Monday, March 29th
Due: Monday, April 5th, 11:00 am

The homework is up, get it from Brian's 451 Sandbox. If you need help with C programming, check out the Resources page for some helpful links, and start early.

Reading assignment

Silberschatz chapters 1, 2 due Wednesday March 31st, chapter 3 due Friday, April 2nd.

Turn-in instructions: Use turnin and bring print out of files to class on Monday.

  1. Make sure to turn in ALL of your code. Do include your executable. Try not to include any files that are created during compilation (these are mostly object files).

  2. Make sure you are on the ATTU server before you begin the turnin process.

  3. Add the following environment variable to your .login/.profile/.cshrc setenv SUB_cse451

  4. To submit a file use the the following command turnin -c cse451 -p homework1 -v <file1.end> <file2.end>

  5. For examples on how to use turnin go to the TURNIN MANPAGE.

  6. If there are any problems with this process, post a message to the bboard. It will be checked during the weekend and hopefully the problems will be resolved.


CSE logo Computer Science & Engineering
University of Washington
Box 352350
Seattle, WA  98195-2350
(206) 543-1695 voice, (206) 543-2969 FAX
[comments to kasiaw@washington.edu]