← Questions
Run a function on several threads and inspect them on Linux
0
I was asked this
No reports yet. Sign in to say where you were asked it.
You are given a function and asked to call it on several threads at once using only the basic thread primitives of your language (no thread or process pools, no asyncio). Start the threads, pass them their arguments, wait for them to finish and collect what they return or raise.
Then explain how you would see those threads from the shell on Linux while the program runs: which tools and /proc entries show a process's threads and their state.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Sign in to submit your code; every attempt is kept here.
Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding