“Concurrent & Distributed Systems”
Spring 2018: Mondays & Wednesdays, 3:00pm-4:15pm, Room 3, Lecture Hall
Instructor: Prof. Jonathan Bell
Email: [email protected]
Office: 4422 Engineering Building; (703) 993-6089
Office Hours: Anytime electronically, Mondays & Wednesdays 2:15-3:00pm, or by appointment
GTA: Arda Gumusalan
Office Hours: Tuesdays, 10:00am-12:00pm, 4456 Engineering Building
UTA: Thanh Luu
Office Hours: Tuesdays, 2:00pm-4:00pm, Thursdays, 10:00am-12:00pm, 4456 Engineering Building
Please post on Piazza for course-related inquiries.
Students are required to have previously taken CS 367 (Computer Systems & Programming).
This is a programming intensive course. You need to be comfortable with programming in Java to be able to do the programming assignments (note: this semester, all assignments will be in Java). It is also not a good idea to take this class if your course/work schedule is already quite full.
The class focusses on issues that arise in the design and implementation of concurrent and distributed applications. Course work will involve several programming assignments.
- Demonstrate an ability to design and implement concurrent programs
- Demonstrate an understanding of the fundamental concepts in synchronizing concurrent processes and threads by using locks, semaphores and monitors
- Demonstrate an ability to design and implement distributed programs using current middleware technologies
- Demonstrate an understanding of the fundamental concepts underlying distributed programming including message passing and remote procedure calls
Unfortunately there is no single textbook that covers all the material that will be discussed in this class. The following three books are FREE, and recommended (not required):
- Operating Systems: Three Easy Pieces (Arpaci-Dusseau and Arpaci-Dusseau) http://pages.cs.wisc.edu/~remzi/OSTEP/
- Distributed Systems 3rd Edition (van Steen and Tanenbaum) https://www.distributed-systems.net/index.php/books/distributed-systems-3rd-edition-2017/
- Principles of Computer Systems Design Part II (Saltzer and Kaashoek) https://ocw.mit.edu/resources/res-6-004-principles-of-computer-system-design-an-introduction-spring-2009/online-textbook/
The following topics will be covered:
- Multi-threaded/Concurrent Programming
- Distributed Systems
- Client-Server Applications
- Middleware technologies
- Networking Fundamentals
- Web Services
- Peer to Peer Computing
There will be five programming assignments. The software required for these projects is available on the computers in the IT&E Lab. You can also do the projects on your own computer. (The programming assignments involve programming in Java and C on a UNIX/Linux platform.) You must do the programming assignments individually.
40% Programming Assignments
15% Final Project
10% Quizes and in-class activities
15% Midterm Exam
20% Final Exam
Students must work individually on all homework assignments. We encourage you to have high-level discussions with other students in the class about the assignments, however, we require that when you turn in an assignment, it is only your work. That is, copying any part of another student’s assignment is strictly prohibited. You are free to reuse small snippets of example code found on the Internet (e.g. via StackOverflow) provided that it is attributed. If you are concerned that by reusing and attributing that copied code it may appear that you didn’t complete the assignment yourself, then please raise a discussion with the instructor.
10% will be deducted for late HW assignments and late HW assignments will only be accepted for 24 hours after the due date. HW assignments submitted more than 24 hours late will receive a zero. If you’re worried about being busy around the time of a HW submission, please plan ahead and get started early. Homework that does not compile or run will receive at most 50% credit.
For fairness to all, there are no exceptions to the above rules.
In Class Activities:
Most lectures will feature interactive activities and/or quizzes that support the material being presented. These quizzes and activities are meant primarily to help me understand how well you (and the class as a whole) are understanding the material that day. These quizzes will be graded on a “did it” or “didn’t” basis: you either take the quiz, and you get the marks, or you did not take the quiz, and do not get the marks (that is, as long as you answer the questions, you get full credit, regardless of what the answers are). You must be present in class to take the quiz (participating in an online quiz remotely will be considered an honor code violation). You can miss up to three quizzes with no penalty.
You are strongly encouraged to bring your laptop or phone to class so that you can participate in the activities.
Schedule (subject to change):
|1||1/22/18||Class Overview; Introduction to Concurrency||PDF | Keynote|
|2||1/24/18||Processes||Additional reading: OS-TEP Ch 4, Ch 7
|PDF | Keynote|
|3||1/29/18||Processes & Signals||Additional reading: Tannenbaum 4.3||PDF | Keynote|
|4||1/31/18||Threads||Additional reading: Tannenbaum 3.1||PDF | Keynote|
|5||2/5/18||Synchronization||Additional reading: OS-TEP Ch 28.1-28.4, Ch 31, Ch 32.3||PDF | Keynote|
|6||2/7/18||More synchronization; Java peculiarities||Additional reading (for HW reference): Java Concurrency Tutorial
HW1 Due, HW2 Out
|PDF | Keynote|
|7||2/12/18||Performance||Additional reading: Java Streams, Fork/Join, CompleteableFuture||PDF | Keynote|
|8||2/14/18||Network Fundamentals||Additional Reading: Saltzer Ch 7.1,7.2||PDF | Keynote|
|9||2/19/18||RMI & RPC||Additional Reading: Tannenbaum 4.2||PDF | Keynote|
|10||2/21/18||REST & Web Services||HW2 Due 2/23 (thanks, AutoLab server crashing), 11:59pm, HW3 out||PDF | Keynote|
|11||2/26/18||Naming||Note: Prof Bell at conference, guest lecturer Dr Luís Pina||PDF | PPT|
|12||2/28/18||Distributed Filesystems||Additional Reading: OS-TEP Ch 49||PDF | Keynote|
|13||3/5/18||Sharding and CDNs||PDF | Keynote|
|14||3/7/18||Midterm||Midterm topics on Piazza|
|15||3/19/18||Midterm Review; Introduction to Agreement||HW3 Due, HW4 Out||PDF | Keynote|
|16||3/21/18||Transactions: 2PC||Additional Reading: Tannenbaum 8.5. Class held via YouTube (snow day)||YouTube | PDF | Keynote|
|17||3/26/18||Transactions: 3PC, Zookeeper||Tannenbaum Note 8.13; The Paper Trail 2PC, 3PC||PDF | Keynote|
|18||3/28/18||Consistency (Strict)||Tannenbaum 7-7.2||PDF | Keynote|
|19||4/2/18||Consistency (Relaxed)||Tannenbaum 7.2-7.3.||PDF | Keynote|
|20||4/4/18||MapReduce & GFS||HW4 Due on Friday, 4/6,
Bonus: Podcast about how DropBox works
|PDF | Keynote|
|21||4/9/18||ZooKeeper & Curator||Prof Bell at ICST, lecture on YouTube (no normal class)||YouTube | PDF | Keynote | Example (completed)|
|22||4/11/18||Microservices & Distributed Architectures||Prof Bell at ICST, lecture on YouTube (no normal class)||YouTube | PDF | Keynote|
|23||4/16/18||Byzantine Fault Tolerance||PDF | Keynote|
|24||4/18/18||Security: Authentication||PDF | Keynote|
|25||4/23/18||Security: Authorization||PDF | Keynote|
|26||4/25/18||P2P||Course evaluation in class||PDF | Keynote|
|27||4/30/18||Advanced Topics||PDF | Keynote|
|28||5/2/18||Review||PDF | Keynote|
|5/8/18||Unused makeup day for 3/21||Project Due|
|5/14/18||Final Exam from 1:30 pm – 4:15 pm|
GMU is an Honor Code university; please see the Office for Academic Integrity for a full description of the code and the honor committee process, and the Computer Science Department’s Honor Code Policies regarding programming assignments. The principle of academic integrity is taken very seriously and violations are treated gravely. What does academic integrity mean in this course? Essentially this: when you are responsible for a task, you will perform that task. When you rely on someone else’s work in an aspect of the performance of that task, you will give full credit in the proper, accepted form. Another aspect of academic integrity is the free play of ideas. Vigorous discussion and debate are encouraged in this course, with the firm expectation that all aspects of the class will be conducted with civility and respect for differing ideas, perspectives, and traditions. When in doubt (of any kind) please ask for guidance and clarification.
Accommodations for Disabilities:
If you have a documented learning disability or other condition that may affect academic performance you should: 1) make sure this documentation is on file with Office for Disability Services (SUB I, Rm. 4205; 993-2474; http://ods.gmu.edu) to determine the accommodations you need; and 2) talk with me to discuss your accommodation needs.
Students must use their MasonLIVE email account to receive important University information, including messages related to this class. See http://masonlive.gmu.edu for more information.