Question OS-SYNC-0050
MediumWhat does a compare-and-swap (CAS) instruction do?
- A.
Compares two files
- B.
Swaps two processes
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Process Synchronization question
What does a compare-and-swap (CAS) instruction do?
Compares two files
Swaps two processes
Sign up free to see the answer and a step-by-step explanation.
Atomically sets a variable to a new value only if it still holds an expected old value
Sorts an array