Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Which statement describes the default memory relationship between threads in one process?" on CodeWiki (https://codewiki.com/practice/mcq/foundations/checkpoint-3/checkpoint-3-sharing-boundary/).
Context (verbatim from the page):
"""
Which statement describes the default memory relationship between threads in one process?
They share the process address space, so mutable shared state needs synchronization.
Each thread receives an isolated copy of every process mapping.
A context switch automatically commits all updates as one transaction.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in CS foundations. Where you are unsure, say so.