CMPS-3600 Operating Systems
Gordon Griesel
Office: Science-III 337
Office Hours: see my schedule, or make an appointment
Email: gordon@cs.csub.edu

Course web site: https://www.cs.csub.edu/~gordon/3600/

Course meets:
MWF 11:00am - 11:50am in room-240 (lecture 81671)
Thurs 10:00am - 12:30pm in room-240 (lab 81672)

Course Description:
From the catalog:
A study of the introductory concepts in operating systems: historical development of batch, multi-programmed, and interactive systems; virtual memory, process, and thread management; interrupt and trap handlers, abstraction layer, message passing; kernel tasks and kernel design issues; signals and interprocess communication; synchronization, concurrency, and deadlock problems. Prerequisite: CMPS 2020 with a grade of C- or better. Prerequisites by Topic:
Programming skill in a high level language (preferably C or C++) Knowledge of data structures and algorithms.

NOTE: This course makes extensive use of the C programming language. Students who have only learned C++ should review a C tutorial for the differences between C ("pure C") and C++. Transfer students who have CMPS 2020 credit due to a Java course will need to take a more intensive self-directed study of the C programming language, as there are many syntax differences between C and Java.

Lecture Topics and Rough Schedule
The topics below are the general subjects of the course, and will
be introduced and discussed sequentially as the course progresses.
Subjects could be added or removed.

WeekChapterTopic list
Week 1 Chapters 1 & 2 Operating systems overview
Week 2 Chapters 1 & 2 Historical development
Week 3 Chapter 3 Process description & control
Week 4 Chapter 4 Principles of threaded programs
Week 5 Chapter 4 SMP & microkernels
Week 6 Chapter 5 Principles of concurrency
Week 7 Chapter 5 Semaphores
Week 8 Chapter 6 Principles of deadlock & starvation
Week 9 Chapter 6 Linux kernel concurrency
Week 10 Chapter 7 Memory management
Week 11 Chapter 8 Virtual memory
Week 12 Chapter 9 Uni-processor scheduling algorithms
Week 13 Chapter 10 Real-time scheduling
Week 14 Chapter 11 I/O scheduling
Week 15 Chapter 15 Security issues

Textbooks:
Operating Systems: Internals and Design Principles
9th edition
by William Stallings
Pearson
ISBN-13:  9780134670959
(Some earlier editions acceptable)
The C Programming Language
(ANSI C)
2nd Edition
by Brian Kernighan and Dennis Ritchie
Prentice Hall
ISBN-13: 978-0131103627
ISBN-10: 0131103628
The Linux Programming Interface
A Linux and UNIX System Programming Handbook
by Michael Kerrisk
No Starch Press, Inc.
ISBN-13: 978-1593272203
ISBN-10: 1593272200

Grading Policy:
labs, homework, quizzes, etc.  50% **********
Midterm exam-1                 15% ***
Project                        20% ****
Final exam                     15% ***
--------------------------------------------
Total                          100% 

Grading scale used during the semester...
    A   93%
    A-  90%
    B+  87%
    B   83%
    B-  80%
    C+  77%
    C   73%
    C-  70%
    D+  67%
    D   63%
    D-  60%
    F    0%

Other course details...

Classroom class sessions
Class sessions will be in Science-III room 240.
When class starts each day, you should be logged in to the Odin server.
Many class sessions will include some programming or a task to complete using
a text file or program on Odin.


Attendance
Class attendance is required.
Please be in your seat and ready when the period begins.

Attendance marks:
   Late arrival to class - 1 mark
   Unexcused absence     - 1 marks

Each attendance mark will deduct 0.5% from your overall grade.


Labs
Lab attendance is required.
Labs are hands-on assignments to be done during the class period.
Lab rules:
   1. Must not be late to lab.
   2. Must work the entire lab period, unless excused by instructor.
   3. Your program must compile and run at the end of a lab period.
      A program that does not compile could receive a score of zero.

Lab assignments are designed to run on the classroom computers.
Use of a personal laptop requires the following...
   1. Ability to enlarge your screen text for better viewing.
   2. Installation of any utilities needed.

More lab rules:
   1. If you are late to lab, do not copy from another student.
   2. If you need help, be ready to enlarge your screen text
      for viewing by your instructor.

Homework
Homework assignments will be posted on our web page.
Instructions will be given for each assignment.
Homework Rules:
   1. Your program must compile and run when it is due.
   2. The homework source code files will be collected by the instructor.


General requirements of all assignments
Your assignments will usually be files stored on the Odin server.
Your files must be stored inside your 3600/ directory, and in the
proper subdirectory.

Your 3600/ directory must be created using a script provided. The 3600/
directory is created so that your work is visible only to you and your
instructor. Do not change the permission of the directory after running
the provided script.

   Other general requirements:
	 . Your name on the top line of a program or text file
     . Correct file name
     . Correct file location

   Programming assignments:
     . No compile warnings or errors
     . Program must run
     . Program output must be neat, clean, and complete.
     . C/C++ program code must follow the K&R coding style.
     . C/C++ program code must have consistent and correct indenting.

   Text file written assignments:
     . Neatly written text
     . Correct spelling and grammar

   Each assignment will also have some specific requirements in addition to
   those listed above.


Final Exam
A final exam will be given.
A date and time for the final exam will be posted.


Late Assignment Policy
Late assignments will not be accepted and can result in a score of zero.


Individual Work Policy
All work done in this course is individual work.
Sharing of source code is not allowed.
Possession of code written by other students is not allowed.
Asking or searching for code written by other students is not allowed.
Copying another student's work is plagiarism.
Copying answers or source code from the Internet is also plagiarism.


Group project work
There will be specific group assignments.
In a group project you may work with other students.
You are required to cooperate with other students in the class.
You will be asked to evaluate yourself and the students in your group.


Classroom Behavior
 - CSUB is a smoke-free and tobacco-free campus!
   Please do not smoke, vape, chew, or spit in the classroom.
 - Please do not wear headphones or earbuds in the classroom.
   Refer to the accommodations section if needed.
   Your instructor reserves the right to ask you to remove your headphones
   inside the classroom.
 - Please do not use your cellphone during class time.
 - Please do not walk past the instructor while a lecture is in progress.
 - Please do not curse in the classroom.
 - Use of an electronic recording device is not allowed.


Academic Integrity Policy
Except for the group projects, all work done in this course is individual work.
Please do not share your work with other students.
You may discuss assignments with other students, but sharing of source code
is simply not allowed. Refer to the Academic Integrity policy printed in the
campus catalog and class schedule. Violations are enforced in accordance with
the Department's policy on academic honesty.


Absence from class
A student's responsibilities include attending classes.
If you miss a class, it is your responsibility to inform your instructor of
the reason for the missed class (documentation may be required) and to arrange
to make up any missed assignments, exams, quizzes, and class work,
to the extent that this is possible.
Excusable absences include, but are not limited to:
Illness, injury, death of an immediate family member, etc.
See a complete list at CSUB Catalog. Search for "University Absence Policy".

If you receive a summons for Jury Duty, immediately call the number on the
summons to reschedule your service to a time when you are not in school,
such as holiday break or summer.

A few common absences that are usually not excused...
   Going to a wedding.
   Going on vacation with your family.
   Your car breaks down.
   You have to take your car to the repair shop.
   A doctor's appointment.
   Sleeping through your alarm.
   You had to go to work.
   Conflict with another class.
   Leaving early or returning late from Spring Break.

Telling your instructor in advance of an absence gives you the
best chance of being excused.

No Recordings Allowed:
Under California Education Code Section 51512, it is illegal for any person,
including a student, to use an electronic device to record what is happening
in the classroom without the consent of the instructor.
The instructor for this course DOES NOT give consent for recording of any kind.
If a disability requires you to record a class session, then please
contact SSD so accommodations can be made.


Your instructor reserves the right to amend this syllabus during the semester.