#include <stdio.h>#include <unistd.h> int main() { int total_threads = 8 ; int current; for (current = 0; current < total_threads; current++) { usleep(150000); printf("Ordered hello %d of %d\n", current, total_threads); } return 0;}
Standard input is empty
Ordered hello 0 of 8 Ordered hello 1 of 8 Ordered hello 2 of 8 Ordered hello 3 of 8 Ordered hello 4 of 8 Ordered hello 5 of 8 Ordered hello 6 of 8 Ordered hello 7 of 8
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!