class: center, middle
Synchronize with Asynchronous Computation
Albert Mingkun Yang
Block or Continuation, that's the question
- Block: Easy to read, but waste CPU cycles
I would firstly assume
sync block has the same semantics of
pthread_mutex_lock. When the execution outside of transactions reaches
sync block, it would gain exclusive access to this critical region, and all other executions, either inside or outside transactions, are blocked if they try to enter the critical region.
When the execution inside of transactions reaches
sync block, it would gain non-exclusive access to this critical region, which could be obtained by any other executions inside transactions, but executions outside transactions would be blocked.
In other words, the mutex lock inside the transactions becomes a reader lock, and mutex lock outside the transactions becomes a writer lock.
specific goal specific time period specific resource unique work arrangement temporary organization
The line is optimized towards routine work. When one new problem arises, one specific request is given to a project group through a project charter trying to solve this problem. After the problem is solved, the result is implemented in the line, and initiates new work routine in the line.