Go backward to Final Instructions
Go up to "Take home" Final Exam
Final Exam Questions
- What are the major differences encountered programming for a UNIX
platform as compared to a DOS or a MS Windows platform?
- Write a code segment that
- prints out the error number,
- prints out the system error message string, and
- exits closing all files
if a call to sigaction() fails.
- Choose a system header file and describe its overall function and
usage. Turn in a copy of the system header file you chose.
- Write a program with the fork() function that --
- First the parent prints "Parent", the parent pid, and child pid.
- Then the child prints "child", the parent pid, and child pid.
Regardless of system activity force the order of the output.
Actually write this program and turn it in.
- Many multi-user turnkey systems have used UNIX to support different
terminal types. In the class we covered curses. What advantage does
a "library" such as curses provide?
- Assume you are writing a program in which
a parent needs to share 1 Mbyte of data with a child process. What
approach would you use to do this and why?
- If a many (1000's) clients needs to transfer
40 bytes of information to a server several times an hour
using TCP/IP what protocol and server type would you choose? Why?
- Write the code segments needed to change a X11 (Xlib or Xt)
program with only
one window to a program that --
- Has a half size child window
- Displays the cursor in the child window
as small circle.
- That writes a red circle at the cursors position
when the left mouse button is depressed.
The location of the red circle(s) does not
need to be remembered for an expose event.
ltaber@pima.edu