Skip to content

cosmo-grant/python-concurrency-quiz

Repository files navigation

README

https://cosmo-grant.github.io/python-concurrency-quiz/

What is this?

A quiz about Python concurrency. A practice project. A bit of fun.

What does it cover?

Threads, processes, asyncio. The fundamental concepts, not the high-level APIs. As of 3.14, with the GIL.

But it doesn't cover xyz!

It focuses on the fundamentals. And no one wants a 50 question quiz.

Did you use LLMs?

I used Opus 4.5 in OpenCode for styling. Transcripts in transcripts/. I wrote everything else, following the example of fstrings-wtf.

Don't the timings depend on the machine?

Yes. Whether it's single- or multi-core. Whether it's fast or slow. Whether it's busy or idle. Whether it's on battery. Whether the power cuts out mid-execution. And more.

Some snippets have comments asking you to assume this or that. Generally, assume a typical machine on a quiet day. I checked the snippets on a MacBook Pro M3.

How did you check the snippets?

Using snippet-checker.

Found a bug?

Great! Please open an issue.

Have a suggestion?

Great! Please open an issue.

Want more questions like these?

You might like my anki deck.

About

Think you know Python concurrency? Prove it.

Resources

License

Stars

Watchers

Forks

Contributors