By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,193 Members | 1,691 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,193 IT Pros & Developers. It's quick & easy.

vb.net creating cues

chathura86
100+
P: 227
i have two prosessors where
1st process send out puts rapidly to the second process
and the second process should accept them and process them one by one.

its like creating a cue for the second process.

because in 1st process, number of outputs per second varies from 3 - 50
but my 2nd process should process them one by one and each and every process takes the same time

please help me to solve this problem

Thank you,
chathura
Nov 6 '07 #1
Share this Question
Share on Google+
7 Replies


Plater
Expert 5K+
P: 7,872
Have you tried:
System.Collections.Queue
Nov 6 '07 #2

chathura86
100+
P: 227
Have you tried:
System.Collections.Queue
no, could you please explain me how to use it
im new to VB

chathura
Nov 6 '07 #3

chathura86
100+
P: 227
it works

Thanks for the help
Nov 7 '07 #5

chathura86
100+
P: 227
is there a way to automatically process the queue if an object is passed to it
i mean like a event or anyting like that.

i want to process the queue untill it gets empty.and it shoul start the process as sonn as an object is passed to it

chathura
Nov 7 '07 #6

Plater
Expert 5K+
P: 7,872
You can have a loop that keeps checking for entries in the queue, and if there are, proccess them. then go back to checking for entries?
Nov 7 '07 #7

chathura86
100+
P: 227
You can have a loop that keeps checking for entries in the queue, and if there are, proccess them. then go back to checking for entries?
ok i'll try it.
Thanks.

chathura
Nov 7 '07 #8

Post your reply

Sign in to post your reply or Sign up for a free account.