Clarifications wrt. Oblig1_澳门葡京手机版app下载

olekss
2022-02-15T09:06:34.827Z
type:structured-message
www.uio.no

Dear students,

Here are a couple clarifications with regards to Oblig1, which I have found to be suitable for general communication:

Task 1: Barriers
A cyclic barrier object should be constructed with a positive integer n - the number of threads to wait for, and have a single method - await. A process that calls await should get blocked on this call until n processes have called await. Such a barrier allows n processes to wait for one another before they go on to some subsequent stage in their (common) computation. A cyclic barrier can be used by n processes more than once, without re-initializing the object.

Task 2 - Producer/Consumer
Here, timing is important. You should be careful not to skew your resul...