Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fernandojinzenji/0624a038022c9c24bfe7b6bc1140d3e0 to your computer and use it in GitHub Desktop.
Save fernandojinzenji/0624a038022c9c24bfe7b6bc1140d3e0 to your computer and use it in GitHub Desktop.
Week 4, Friday - Reading and Questions
Question 1: What is a deadlock? What happens to your application if you have a deadlock in it?
Deadlock occurr when a process A depends on the process B, and vice versa. This creates a dependecy cycle (called deadlock)
and makes your application unresponsive.
Question 2: In GDC, what is a barrier? Why would you want to use something like dispatchbarrierasync ?
A barrier in GDC acts like a bottleneck to create a queue in concurrent process and ensure that each one process is not
started until other is finalized. The command dispatchbarrierasync allow multiple reader blocks, but ensure that only one
write block is executed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment