employer cover photo
employer logo
employer logo

National Security Agency

Engaged employer

National Security Agency interview question

What is a Critical Section ?

Interview Answer

Anonymous

25 May 2020

A section of code where a race condition may occur; e.g., if the code allows sync create and update, you may end up trying to update a record that does not exist yet. Try adding async controls to the critical section to prevent this from happening.

1