Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Which statement most accurately distinguishes a process from a thread?" on CodeWiki (https://codewiki.com/practice/mcq/foundations/processes-and-threads/process-thread-boundary/).
Context (verbatim from the page):
"""
Which statement most accurately distinguishes a process from a thread?
Every thread has a separate virtual address space.
A process is a resource and isolation context; a thread is a schedulable execution path inside one.
Processes can never share memory.
A thread is always cheaper than a process for every workload.
"""
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.