Loading lesson…
Level 1 · Apprentice0 XP
Threads, cores and the operating system scheduler, without jargon.
Step 1 / 6
ProblemYour app downloads a file and still reacts to taps. Something must let two pieces of code make progress at the same time.
← → step
Before this: Stack, heap and garbage collection
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Run the two-thread counter several times and record the results. Then increase to 4 threads and see how many updates are lost.