File locking and race conditions

2025-hsc-se-q08 · Multiple Choice · 1 mark

Source: NESA 2025 HSC Software Engineering HSC Q8

Question

File locking prevents multiple users from editing a file at the same time. When a shared file is opened by a user, file locking ensures that only this user can make changes to the file while it is locked.

Which of the following does file locking minimise?

Options

Select one answer
Reveal answer

A. Race conditions

Marking rubric

MarksDescription
1Identifies the correct answer.

Explanation

File locking prevents simultaneous writes to the same shared resource, which helps minimise race conditions.

Metadata

Submitter
Seed data
Created
2026-05-02
Status
published
Syllabus
y12-secure-user-action-controls
Tags
file locking race conditions concurrency secure code