TK Study

Software Engineering › Learn step by step › Y12 Secure Software Architecture

Item 221 of 426 · Year 12: Secure Software Architecture, 44 of 57

Race condition

Term Key terms bank

Jump to a topic
  1. Exam format, question types and command words (46)
  2. Year 11: Programming Fundamentals (69)
  3. Year 11: The Object-Oriented Paradigm (33)
  4. Year 11: Programming Mechatronics (29)
  5. Year 12: Secure Software Architecture (57)
  6. Year 12: Programming for the Web (59)
  7. Year 12: Software Automation (35)
  8. Year 12: The Software Engineering Project (47)
  9. Diagrams and modelling tools (18)
  10. Python, SQL, pseudocode and CSS patterns (33)

See every item in the sequence

Definition

A fault where the outcome depends on the timing of two or more processes using the same data, so results are unpredictable (for example two users buying the last ticket).

Example: 'Two withdrawals read the same balance at once.' Prevent with locking.

Found in: syllabus, 2025 HSC marking guidelines, sample exam and familiarisation guidelines, school notes.

Short version to memorise (key terms bank)

Outcome depends on the timing of concurrent access to shared data.

Where you'll use it in the test

Syllabus area: Y12 Secure Software Architecture.

Question types it can appear in

Where it has appeared in the paper

Secure Software Architecture (Part A, B). Part letters follow each paper’s own layout.

Related past questions

How to use it

A model sentence

General advice, built from the definition and example above

“A fault where the outcome depends on the timing of two or more processes using the same data, so results are unpredictable (for example two users buying the last ticket).” Then apply it: 'Two withdrawals read the same balance at once.' Prevent with locking.

In a short answer, give the definition in your own words first, then tie it to the situation in the question. Do not copy the example above unless it fits the scenario.

Command words used with it

From the linked past questions
  • Identify: Recognise and name. (2025 HSC Q8 (1 mark): User action controls)

Official worked answer

Sample exam Q22b (3 marks): Race conditions (3 marks): official criteria and sample answer

Criteria

3: Provides an example of when a race condition may occur AND outlines how secure code could prevent it. 2: Outlines some features of race conditions. 1: Some relevant information.

Sample answer

With multiple teachers potentially accessing the database at the same time, race conditions can allow malicious users to gain unauthorised access. Authentication could be used to restrict access to the database, and code can be written to use atomic transactions and database locks to time the reading and writing of data.

Open the question page

Go deeper

Check yourself

Explain “Race condition” in one sentence, give an example, and name a question type that could test it.

Reveal the answer

A fault where the outcome depends on the timing of two or more processes using the same data, so results are unpredictable (for example two users buying the last ticket).

Example: 'Two withdrawals read the same balance at once.' Prevent with locking.

Could be tested as: Multiple choice, Short answer.