LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Thread safe queue

I got a few questions about thread safe queue.

1. How does it work internally ?
What mechanism it uses (is it semaphore, other?).

2. Documentation says that when one thread writes to queue other can
read from it.
How many threads can read from queue simultaneously ?

___________
regards
Frog
0 Kudos
Message 1 of 2
(2,987 Views)
1) Effectively, critical sections

2) As many as you want, the read function is protected internally from simultaneous access of the data.
0 Kudos
Message 2 of 2
(2,987 Views)