Click here to Skip to main content
15,891,567 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionMultithreading Pin
programmervb.netc++15-Mar-10 16:23
programmervb.netc++15-Mar-10 16:23 
AnswerRe: Multithreading Pin
Luc Pattyn15-Mar-10 16:51
sitebuilderLuc Pattyn15-Mar-10 16:51 
GeneralRe: Multithreading Pin
programmervb.netc++15-Mar-10 16:57
programmervb.netc++15-Mar-10 16:57 
GeneralRe: Multithreading Pin
Luc Pattyn15-Mar-10 17:31
sitebuilderLuc Pattyn15-Mar-10 17:31 
QuestionEmbarrassing but true Pin
programmervb.netc++15-Mar-10 14:27
programmervb.netc++15-Mar-10 14:27 
AnswerRe: Embarrassing but true Pin
Luc Pattyn15-Mar-10 14:48
sitebuilderLuc Pattyn15-Mar-10 14:48 
GeneralRe: Embarrassing but true Pin
programmervb.netc++15-Mar-10 14:54
programmervb.netc++15-Mar-10 14:54 
GeneralRe: Embarrassing but true Pin
Luc Pattyn15-Mar-10 15:15
sitebuilderLuc Pattyn15-Mar-10 15:15 
Hi,

as I don't know anything about your app, I can only give general ideas and examples.

independent operations:
- example: reading data from two serial ports; if you intertwine read operations on a single thread, then the slowest port will dictate the speed of both; with asynchronous events or threads, both ports would evolve at their own speed.
- example: reading data from a disk file and from a network; the inherent speed of each could vary, so best results require independent operation

A decent app keeps the GUI free by delegating all jobs that take time (calculations > 100 milliseconds), or potentially take time (reading file over network) to separate threads. Net result:
- the GUI remains alive, if another window moves over it, or the user clicks minimize/maximize, it will still react;
- the GUI should offer progress information;
- the GUI should offer a cancel option.

Doing this properly requires at least one extra thread.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.

GeneralRe: Embarrassing but true Pin
programmervb.netc++15-Mar-10 15:17
programmervb.netc++15-Mar-10 15:17 
AnswerRe: Embarrassing but true Pin
Dave Kreskowiak15-Mar-10 14:49
mveDave Kreskowiak15-Mar-10 14:49 
GeneralRe: Embarrassing but true Pin
Luc Pattyn15-Mar-10 15:16
sitebuilderLuc Pattyn15-Mar-10 15:16 
GeneralRe: Embarrassing but true Pin
Dave Kreskowiak15-Mar-10 16:24
mveDave Kreskowiak15-Mar-10 16:24 
QuestionVB.Net Conversion Wizard Pin
arsha_midy15-Mar-10 13:43
arsha_midy15-Mar-10 13:43 
AnswerRe: VB.Net Conversion Wizard Pin
programmervb.netc++15-Mar-10 14:28
programmervb.netc++15-Mar-10 14:28 
GeneralRe: VB.Net Conversion Wizard Pin
arsha_midy15-Mar-10 20:59
arsha_midy15-Mar-10 20:59 
AnswerRe: VB.Net Conversion Wizard Pin
Dave Kreskowiak15-Mar-10 14:44
mveDave Kreskowiak15-Mar-10 14:44 
GeneralRe: VB.Net Conversion Wizard Pin
programmervb.netc++15-Mar-10 14:49
programmervb.netc++15-Mar-10 14:49 
QuestionWeird error that only happens sometimes.. Pin
programmervb.netc++15-Mar-10 10:36
programmervb.netc++15-Mar-10 10:36 
Answerpartial answer Pin
Luc Pattyn15-Mar-10 11:07
sitebuilderLuc Pattyn15-Mar-10 11:07 
GeneralRe: partial answer Pin
programmervb.netc++15-Mar-10 11:09
programmervb.netc++15-Mar-10 11:09 
AnswerRe: partial answer Pin
Luc Pattyn15-Mar-10 11:32
sitebuilderLuc Pattyn15-Mar-10 11:32 
GeneralRe: partial answer Pin
programmervb.netc++15-Mar-10 11:14
programmervb.netc++15-Mar-10 11:14 
AnswerRe: Weird error that only happens sometimes.. Pin
Gideon Engelberth16-Mar-10 18:00
Gideon Engelberth16-Mar-10 18:00 
QuestionWindows Workflow Foundation Pin
Simon_Whale15-Mar-10 5:01
Simon_Whale15-Mar-10 5:01 
AnswerRe: Windows Workflow Foundation Pin
Dave Kreskowiak15-Mar-10 14:40
mveDave Kreskowiak15-Mar-10 14:40 

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.