Domanda di colloquio di National Security Agency

What is a Critical Section ?

Risposta di colloquio

Anonimo

25 mag 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