← Microsoft questions

Print numbers from 1 to 100 using 3 threads

Filed under Microsoft

Implement thread synchronization so that three separate threads print numbers sequentially from 1 to 100 in order (Thread 1 prints 1, 4, 7...; Thread 2 prints 2, 5, 8...; Thread 3 prints 3, 6, 9...).

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.