Concurrency
Semaphores and mutexes
Which of the following statements about DispatchSemaphore and mutexes (NSLock, Mutex) are correct? Select all that apply.
Pick all that apply
Semaphores and mutexes
Which of the following statements about DispatchSemaphore and mutexes (NSLock, Mutex) are correct? Select all that apply.
Pick all that apply
ConcurrencyShort answerBasics
This code gets called from several threads, and count comes out lower than expected. Can …
#lock
ConcurrencyShort answerBasics
When a screen appears you call three APIs in parallel, profile, feed, and notifications, …
#semaphore
ConcurrencyMultiple choiceAdvanced
Five threads each run count += 1 20 times on a shared variable count (initially 0), with …
#lock
ConcurrencyShort answerAdvanced
In a message list screen, each cell downloads its profile image asynchronously and caches…
#lock