Click here to Skip to main content
15,907,687 members
Home / Discussions / C#
   

C#

 
GeneralRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
Pete O'Hanlon25-Oct-11 4:10
mvePete O'Hanlon25-Oct-11 4:10 
GeneralRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
BillWoodruff25-Oct-11 14:53
professionalBillWoodruff25-Oct-11 14:53 
GeneralRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
boreland25-Oct-11 15:49
boreland25-Oct-11 15:49 
GeneralRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
BillWoodruff25-Oct-11 17:51
professionalBillWoodruff25-Oct-11 17:51 
GeneralRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
boreland25-Oct-11 19:29
boreland25-Oct-11 19:29 
GeneralRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
Pete O'Hanlon26-Oct-11 3:23
mvePete O'Hanlon26-Oct-11 3:23 
GeneralRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
BobJanova26-Oct-11 0:35
BobJanova26-Oct-11 0:35 
GeneralRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
BobJanova26-Oct-11 0:34
BobJanova26-Oct-11 0:34 
I still don't think you want the forms in separate threads. Do the market processing in separate threads, sure – since they're independent and of roughly equal processing intensity, that is a natural division of effort that makes a lot of sense to make use of the cores. But the heavy processing is in the analytics (having done a bit of trading code myself I know that the complexity of those is limited by your imagination or the ability to run within the tick speed, and speed is usually a bigger constraint) – you should be able to keep the UI all in one thread (avoiding the side effects I mentioned in my last post of a multithreaded UI) and notify it from multiple threads.

Because the data will be being touched all the time you might need to queue updates and take a non-volatile UI thread copy of the data, or use Invoke (not BeginInvoke) so that the processing is stalled while the UI update completes. This rather depends on your analytics and how much of the data you want to be visible on the UI; if the UI is just displaying the output of the analytics you shouldn't need to be too clever with update synchronisation, but if you want to see numbers (or particularly tables; DataGridViews don't take kindly to their binding source being updated) you will.
AnswerRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
BillWoodruff25-Oct-11 18:01
professionalBillWoodruff25-Oct-11 18:01 
AnswerRe: Dynamically placing Forms onto TabControl Pages - need to add threading Pin
boreland7-Nov-11 13:39
boreland7-Nov-11 13:39 
Question2010 C# linq Pin
dcof24-Oct-11 12:28
dcof24-Oct-11 12:28 
AnswerRe: 2010 C# linq Pin
Not Active24-Oct-11 12:57
mentorNot Active24-Oct-11 12:57 
QuestionPoint conversion. Pin
paper6724-Oct-11 8:05
paper6724-Oct-11 8:05 
AnswerRe: Point conversion. Pin
Eddy Vluggen24-Oct-11 8:34
professionalEddy Vluggen24-Oct-11 8:34 
AnswerRe: Point conversion. Pin
Luc Pattyn24-Oct-11 9:09
sitebuilderLuc Pattyn24-Oct-11 9:09 
GeneralRe: Point conversion. Pin
Keith Barrow24-Oct-11 9:11
professionalKeith Barrow24-Oct-11 9:11 
GeneralRe: Point conversion. Pin
Eddy Vluggen24-Oct-11 9:49
professionalEddy Vluggen24-Oct-11 9:49 
GeneralRe: Point conversion. Pin
Richard MacCutchan24-Oct-11 10:18
mveRichard MacCutchan24-Oct-11 10:18 
GeneralRe: Point conversion. Pin
Eddy Vluggen24-Oct-11 10:29
professionalEddy Vluggen24-Oct-11 10:29 
AnswerRe: Point conversion. Pin
BobJanova24-Oct-11 23:13
BobJanova24-Oct-11 23:13 
GeneralRe: Point conversion. Pin
harold aptroot24-Oct-11 23:36
harold aptroot24-Oct-11 23:36 
AnswerRe: Point conversion. Pin
Eddy Vluggen25-Oct-11 0:40
professionalEddy Vluggen25-Oct-11 0:40 
GeneralRe: Point conversion. Pin
harold aptroot25-Oct-11 0:43
harold aptroot25-Oct-11 0:43 
AnswerRe: Point conversion. Pin
Eddy Vluggen25-Oct-11 6:52
professionalEddy Vluggen25-Oct-11 6:52 
GeneralRe: Point conversion. Pin
harold aptroot25-Oct-11 6:54
harold aptroot25-Oct-11 6:54 

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.