Multiple choice technology web technology

When you execute 'open with lock', the following occurs :

  1. If the specified file is already in the open mode, the program is suspended, and waits for exclusive availability of the file.

  2. If the specified file is not in the open mode, the file is opened.

  3. If the specified file is not in the open mode, the program is suspended, and waits for exclusive availability of the file.

  4. If the specified file is in the open mode, the file is opened.

Reveal answer Fill a bubble to check yourself
A,B Correct answer
Explanation

When executing an open operation with a lock, the system requests exclusive access to the file. If the file is not currently open, it is opened successfully. If it is already open by another process, the program is suspended and waits for the file to become available.