vault backup: 2023-10-18 12:19:55

This commit is contained in:
Alice 2023-10-18 12:19:55 +01:00
parent bb2a7f80cf
commit 537b549a21
10 changed files with 19 additions and 14 deletions

View file

@ -50,8 +50,14 @@ Yes, since it is statically distributed.
#### c) \#pragma omp critical
![[Pasted image 20231018120412.png]]
There is a restriction on the thread access to the printing - each thread is forced to complete the entirety of the task and it cannot end the printing until it is completed with its task.
There is a restriction on the thread access to the printing - each thread is forced to complete the entirety of the task and it cannot end the printing until it is completed with its task. It creates a certain indivisible block of code the thread must run.
****
### Ex 3
### 3.1 + 3.2
![[Pasted image 20231018121319.png]]
The output is always the same, since the instruction ''''\#pragma omp barrier'''' creates a barrier after one single thread execution (series of fork joins between the 2 threads).