Skip to content

Instantly share code, notes, and snippets.

@exhesham
Created Dec 12, 2021
Embed
What would you like to do?
sol2.log
[LOG]: "Total tasks: 10"
[LOG]: "worker 1 is started"
[LOG]: "worker 1 handles task"
[LOG]: " --> Task 1 started"
[LOG]: "worker 2 is started"
[LOG]: "worker 2 handles task"
[LOG]: " --> Task 2 started"
[LOG]: "worker 3 is started"
[LOG]: "worker 3 handles task"
[LOG]: " --> Task 3 started"
[LOG]: "worker 4 is started"
[LOG]: "worker 4 handles task"
[LOG]: " --> Task 4 started"
[LOG]: " <-- Task 4 finished"
[LOG]: "worker 4 finished handling task"
[LOG]: "worker 4 handles task"
[LOG]: " --> Task 5 started"
[LOG]: " <-- Task 3 finished"
[LOG]: "worker 3 finished handling task"
[LOG]: "worker 3 handles task"
[LOG]: " --> Task 6 started"
[LOG]: " <-- Task 1 finished"
[LOG]: "worker 1 finished handling task"
[LOG]: "worker 1 handles task"
[LOG]: " --> Task 7 started"
[LOG]: " <-- Task 2 finished"
[LOG]: "worker 2 finished handling task"
[LOG]: "worker 2 handles task"
[LOG]: " --> Task 8 started"
[LOG]: " <-- Task 6 finished"
[LOG]: "worker 3 finished handling task"
[LOG]: "worker 3 handles task"
[LOG]: " --> Task 9 started"
[LOG]: " <-- Task 5 finished"
[LOG]: "worker 4 finished handling task"
[LOG]: "worker 4 handles task"
[LOG]: " --> Task 10 started"
[LOG]: " <-- Task 8 finished"
[LOG]: "worker 2 finished handling task"
[LOG]: "worker 2 is retired"
[LOG]: " <-- Task 7 finished"
[LOG]: "worker 1 finished handling task"
[LOG]: "worker 1 is retired"
[LOG]: " <-- Task 10 finished"
[LOG]: "worker 4 finished handling task"
[LOG]: "worker 4 is retired"
[LOG]: " <-- Task 9 finished"
[LOG]: "worker 3 finished handling task"
[LOG]: "worker 3 is retired"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment