Click here to Skip to main content
15,897,273 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: getting value of the textbox to be used in crystal report Pin
clarence_1325-May-11 20:42
clarence_1325-May-11 20:42 
QuestionPDF parser Pin
εїзεїзεїз23-May-11 9:44
εїзεїзεїз23-May-11 9:44 
AnswerRe: PDF parser Pin
Dalek Dave23-May-11 13:20
professionalDalek Dave23-May-11 13:20 
GeneralA quick question for you - preparing it Pin
TONY_R23-May-11 0:49
TONY_R23-May-11 0:49 
GeneralRe: A quick question for you - preparing it Pin
Dave Kreskowiak23-May-11 1:35
mveDave Kreskowiak23-May-11 1:35 
GeneralRe: A quick question for you - preparing it Pin
Luc Pattyn23-May-11 1:53
sitebuilderLuc Pattyn23-May-11 1:53 
QuestionMulti-threading a windows service in VB [modified] Pin
rguerett20-May-11 8:19
rguerett20-May-11 8:19 
AnswerRe: Multi-threading a windows service in VB Pin
Luc Pattyn20-May-11 8:33
sitebuilderLuc Pattyn20-May-11 8:33 
Multi-threading isn't the magical cure to everything. It works well in a lot of situations, and doesn't at all in others. That is due to either the problem being inherently sequential, or the design or implementation being flawed. From what you told us I can't tell which applies to your case.

Here are some suggestions:
- implement it without multi-threading, run a relevant test case, and observe the behavior. In particular look at the CPU load in Task Manager; if it is less than 100% divided by the number of cores, it probably could benefit from multi-threading; and if it is close to 100%, multi-threading will not help at all.
- make sure it isn't as fast as you would like, then make sure you have optimized everything you could reasonably optimize; choose the proper algorithm; apply proper indexing to the database; etc etc. Also make sure you don't have busy loops, i.e. things such as:
while(!done) }
    if (newDataAvailable) }
        ...process new data
    }
}

which would spin (and waste cycles) at maximum speed as long as no data is available.
- once you really understand there are blocking calls (waits) that could be hidden (by processing other data in the mean time), start designing a multi-threading approach, at best by just adding a single thread and making sure it meets your expectations.
- then think again about having maybe some more threads.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

AnswerRe: Multi-threading a windows service in VB Pin
David Mujica20-May-11 8:36
David Mujica20-May-11 8:36 
QuestionOnly FW4 possible After new install Pin
JR21219-May-11 19:29
JR21219-May-11 19:29 
AnswerRe: Only FW4 possible After new install Pin
Dalek Dave19-May-11 21:17
professionalDalek Dave19-May-11 21:17 
GeneralRe: Only FW4 possible After new install Pin
AspDotNetDev21-May-11 12:43
protectorAspDotNetDev21-May-11 12:43 
AnswerRe: Only FW4 possible After new install Pin
AspDotNetDev21-May-11 12:40
protectorAspDotNetDev21-May-11 12:40 
QuestionAlign Long String in DataGridView Cell to Show String End Pin
Andraw Tang19-May-11 8:35
Andraw Tang19-May-11 8:35 
AnswerRe: Align Long String in DataGridView Cell to Show String End Pin
Dave Kreskowiak19-May-11 9:02
mveDave Kreskowiak19-May-11 9:02 
GeneralRe: Align Long String in DataGridView Cell to Show String End Pin
Andraw Tang19-May-11 10:15
Andraw Tang19-May-11 10:15 
AnswerRe: Align Long String in DataGridView Cell to Show String End Pin
Luc Pattyn19-May-11 9:12
sitebuilderLuc Pattyn19-May-11 9:12 
GeneralRe: Align Long String in DataGridView Cell to Show String End Pin
Andraw Tang19-May-11 10:35
Andraw Tang19-May-11 10:35 
Questionparsing .frm file for control names and nested level Pin
john john mackey17-May-11 9:27
john john mackey17-May-11 9:27 
AnswerRe: parsing .frm file for control names and nested level Pin
Dave Kreskowiak17-May-11 10:11
mveDave Kreskowiak17-May-11 10:11 
GeneralRe: parsing .frm file for control names and nested level Pin
john john mackey17-May-11 10:32
john john mackey17-May-11 10:32 
GeneralRe: parsing .frm file for control names and nested level Pin
Dave Kreskowiak18-May-11 2:52
mveDave Kreskowiak18-May-11 2:52 
Questionlogin into website Pin
DanYELL17-May-11 5:12
DanYELL17-May-11 5:12 
AnswerRe: login into website Pin
Dave Kreskowiak17-May-11 6:54
mveDave Kreskowiak17-May-11 6:54 
GeneralRe: login into website Pin
DanYELL17-May-11 11:18
DanYELL17-May-11 11:18 

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.