Add the rest of university notes
This commit is contained in:
366 files changed
+9844
-110
No files matched your search
@@ -49,7 +49,7 @@ A correct implementation requires:
|
||||
>
|
||||
> `rwSync` : a semaphore that synchronises the readers and writers, set by the first/last reader.
|
||||
|
||||

|
||||

|
||||
|
||||
`sync` is used to `mutex_lock` and `mutex_unlock` when the `iReadCount` is being modified.
|
||||
|
||||
@@ -70,7 +70,7 @@ Unless `iReadCount` reaches 0, writing will not happen. **This means writers can
|
||||
> * `sReadTry`: to **stop readers** when there is a **writer waiting**.
|
||||
> * `sResource`: to **synchronise** the resource for **reading/writing**.
|
||||
|
||||

|
||||

|
||||
|
||||
[explanation time stamp 43:35]
|
||||
|
||||
|
||||
Reference in new issue
Block a user