LinkedIn Interview Question

How to implement a non-blocking queue for multi-threading? How to implement a non-blocking task scheduler for multiple tasks?