Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
GeneralRe: sorting information from several threads - is my algorithm correct? Pin
BillWoodruff18-Nov-15 0:05
professionalBillWoodruff18-Nov-15 0:05 
GeneralRe: sorting information from several threads - is my algorithm correct? Pin
John Torjo18-Nov-15 0:07
professionalJohn Torjo18-Nov-15 0:07 
GeneralRe: sorting information from several threads - is my algorithm correct? Pin
John Torjo18-Nov-15 10:58
professionalJohn Torjo18-Nov-15 10:58 
AnswerRe: sorting information from several threads - is my algorithm correct? Pin
Gerry Schmitz17-Nov-15 16:13
mveGerry Schmitz17-Nov-15 16:13 
GeneralRe: sorting information from several threads - is my algorithm correct? Pin
John Torjo17-Nov-15 22:12
professionalJohn Torjo17-Nov-15 22:12 
GeneralRe: sorting information from several threads - is my algorithm correct? Pin
Gerry Schmitz18-Nov-15 0:17
mveGerry Schmitz18-Nov-15 0:17 
GeneralRe: sorting information from several threads - is my algorithm correct? Pin
John Torjo18-Nov-15 0:23
professionalJohn Torjo18-Nov-15 0:23 
GeneralRe: sorting information from several threads - is my algorithm correct? Pin
Gerry Schmitz18-Nov-15 0:50
mveGerry Schmitz18-Nov-15 0:50 
I think there are any number of ways; all "correct"; but not the "same".

If all the providers "know" what the other is doing, then they have all the info they need to push: they know what's behind them and beside them. In the sample you posted, there was no "stalling".

One can "subscribe" to events posted by observable collections. If each provider subscribes to each other provider, everyone will always know when anyone adds or removes entries from their collections; this is their cue to decide whether to push (much in the same way the client decides whether to pull from a single queue and how much).

I just don't like polling if I don't have to (as when there is no data). Just more "staying alive".

GeneralRe: sorting information from several threads - is my algorithm correct? Pin
John Torjo18-Nov-15 4:10
professionalJohn Torjo18-Nov-15 4:10 
AnswerRe: sorting information from several threads - is my algorithm correct? Pin
Daniel Pfeffer18-Nov-15 9:24
professionalDaniel Pfeffer18-Nov-15 9:24 
GeneralRe: sorting information from several threads - is my algorithm correct? Pin
John Torjo18-Nov-15 10:38
professionalJohn Torjo18-Nov-15 10:38 
QuestionNeed help with creating of program Pin
F1nger17-Nov-15 5:01
F1nger17-Nov-15 5:01 
AnswerRe: Need help with creating of program Pin
OriginalGriff17-Nov-15 5:12
mveOriginalGriff17-Nov-15 5:12 
GeneralRe: Need help with creating of program Pin
F1nger17-Nov-15 5:16
F1nger17-Nov-15 5:16 
GeneralRe: Need help with creating of program Pin
OriginalGriff17-Nov-15 5:20
mveOriginalGriff17-Nov-15 5:20 
GeneralRe: Need help with creating of program Pin
F1nger17-Nov-15 5:20
F1nger17-Nov-15 5:20 
GeneralRe: Need help with creating of program Pin
OriginalGriff17-Nov-15 5:26
mveOriginalGriff17-Nov-15 5:26 
AnswerRe: Need help with creating of program Pin
Pete O'Hanlon17-Nov-15 5:14
mvePete O'Hanlon17-Nov-15 5:14 
GeneralRe: Need help with creating of program Pin
F1nger17-Nov-15 5:17
F1nger17-Nov-15 5:17 
GeneralRe: Need help with creating of program Pin
Dave Kreskowiak17-Nov-15 6:40
mveDave Kreskowiak17-Nov-15 6:40 
GeneralMaking Application a Trial Version Pin
Member 1202173416-Nov-15 22:29
Member 1202173416-Nov-15 22:29 
GeneralRe: Making Application a Trial Version Pin
Richard MacCutchan16-Nov-15 22:40
mveRichard MacCutchan16-Nov-15 22:40 
GeneralRe: Making Application a Trial Version Pin
Pete O'Hanlon16-Nov-15 23:07
mvePete O'Hanlon16-Nov-15 23:07 
GeneralRe: Making Application a Trial Version Pin
Member 1202173410-Dec-15 22:27
Member 1202173410-Dec-15 22:27 
Questioncall web API in c# Pin
Member 1212120116-Nov-15 18:15
Member 1212120116-Nov-15 18:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.