COMP2320 Operating Systems
Lecturer:
Joseph Kee-Yin NG
Telephone: 3411-7864
Facsimile: 3411-7892
ICQ: 113034029
Office: R730, Run Run Shaw Building
E-mail:
jng@comp.hkbu.edu.hk
Teaching Assistant:
Lam Sze Man, Priscilla
E-mail:
priscillalsm@gmail.com
Class Schudule: First class for 06-07, starts at Sept. 4th 2006 at LT3
Mon 09:30 - 11:20 LT3
Wed 12:30 - 13:20 LT2
Teaching Materials:--- PowerPoint format
Supplementary Notes:
Class Notes on Unix Commands
Web page on Unix Commands
Mid Term:
Date: November 15th 2006 (Wednesday)
Time: 12:30pm - 1:20pm (50 Minutes)
Place1: E1017 (For BSC COMP SCI)
Place2: LT2 (For the rest of the class -- BSC COMP STD, BSC-S MATH, BSSC GEOG, ...etc)
Format: Closed Book, Closed Notes, Open Minded, Written Examination.
Coverage: Chapter 2 to Chapter 7.
Mid-Term Suggested Solution
Homework Assignments:
- Assignment #1:
- Description for the
Assignment #1
(pdf)
- Demo Program for Readwriter
(Readwriter)
- Suggested Solution for Readwriter
(Readwriter.doc)
- Demo Program for totd
(totd)
- Suggested Solution for totd
(totd.doc)
- What and How to hand-in the assignment:
- Create a directory called comp2320 under the "Home" directory of your
CSLINUX account. And create a directory called assign1 under comp2320.
Upload your source programs xxxxxxxx-totd.c and xxxxxxxx-readerwriter.c,
where xxxxxxxx is your login ID.
Notes on Process and Thread Programming:
-
2process.c --- a program that demonstrates the use of the fork( )
system call
-
3process.c --- a program that demonstrates how to spawn 3 processes
-
5threads.c --- a program that demonstrates how to spawn 5 threads
-
dotprod_mutex.c --- a program that demonstrates how to use mutex
-
join.c --- a program that demonstrates how to wait for all threads to finish
Notes on Semaphore Programming:
Other useful functions or routines:
-
random.c -- a random number generator routine
Text Book:
William Stallings, Operating Systems 5th Ed.
Prentice Hall 2005 (ISBN 0-13-127837-1)
Prentice Hall Home Page
Reference:
- Silberschartz A., and Galvin, P.B.,
Operating System Concepts,
5th Edition, Addison-Wesley, 1998,
- Dietel H. M.,
An Introduction to Operating Systems,
2nd Edition, Addison-Wesley, 1990.