Question OS-SYNC-0066
HardWhat does a test-and-set instruction do?
- A.
Adds two numbers
- B.
Atomically reads a memory word and sets it to true, returning the old value
- 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 test-and-set instruction do?
Adds two numbers
Atomically reads a memory word and sets it to true, returning the old value
Sign up free to see the answer and a step-by-step explanation.
Tests a file's permissions
Disables interrupts permanently