I'm new to threading and wanted to make a program that was going to receive data from two separate pieces of hardware and populate a queu with their data. I then wanted to pull the data out of the queue and draw it to the screen graphically. So each piece of hardware will get its own thread while the graphics work inside the main thread. So my question is this: is it possible to read and write to the queue at the same time or do I have to lock the queue each time on of the threads accesses the queue.
Evan