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

May 25, 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