Skip to content

Commit 6f8a8b9

Browse files
authored
Sisyphus doc updates (#218)
* Update lab_pp expected output. (#192) * Add clarification about epoll() usage. (#209)
1 parent f0cd4bd commit 6f8a8b9

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

_docs/networking_mp.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ So why would we ever want to use edge triggered behavior? Well, consider what ha
4646

4747
Edge triggered mode (together with the `EPOLLONESHOT` flag) guarantees that a single thread will handle all the data that arrived on that given socket, so (although with some additional code complexity) it's not possible that two threads accidentally 'steal' the file descriptor data from each other.
4848

49+
**Note**: You **must** use `epoll()` for this assignment. If you do not, you will get a 0 on all tests that use your server.
50+
4951
## The Problem
5052

5153
You'll be writing the client and server for a simplified file sharing application. TCP is used for everything here, so reliability is taken care of. The server uses non-blocking I/O (with epoll) to handle concurrent requests. The application supports four basic operations - `GET`, `PUT`, `LIST` and `DELETE`. Their functions are as follows:

_docs/perilous_pointers.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Hello World!
4949
== seven() ==
5050
0.000000 0.100000 0.200000 0.300000 0.400000 0.500000 0.600000 0.700000 0.800000 0.900000
5151
== eight() ==
52-
0 10 40 90 160 250 360 490 640 810
52+
0 10 40 90 160 250 360 490 640 810
5353
== nine() ==
5454
orange and blue!
5555
ORANGE and blue!
@@ -59,17 +59,17 @@ orange and blue!
5959
The radius of the circle is: 17.500000.
6060
The radius of the circle is: 10.000000.
6161
== clear_bits() ==
62-
170
63-
0
64-
171
65-
0
66-
20
67-
0
68-
== little finite automatons
69-
5
70-
4
71-
6
72-
7
62+
cleared_value: 170
63+
cleared_value: 0
64+
cleared_value: 171
65+
cleared_value: 0
66+
cleared_value: 20
67+
cleared_value: 0
68+
== little finite automata ==
69+
final state: 5
70+
final state: 4
71+
final state: 6
72+
final state: 7
7373
```
7474

7575
Note that you can just diff with ```part1-expected-output```.

0 commit comments

Comments
 (0)