Click here to Skip to main content
15,910,211 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionUpdating database Pin
Mr Oizo30-Sep-07 5:23
Mr Oizo30-Sep-07 5:23 
AnswerRe: Updating database Pin
GuyThiebaut30-Sep-07 9:30
professionalGuyThiebaut30-Sep-07 9:30 
GeneralRe: Updating database Pin
Mr Oizo30-Sep-07 10:40
Mr Oizo30-Sep-07 10:40 
GeneralRe: Updating database Pin
GuyThiebaut30-Sep-07 10:55
professionalGuyThiebaut30-Sep-07 10:55 
GeneralRe: Updating database Pin
Mr Oizo30-Sep-07 21:08
Mr Oizo30-Sep-07 21:08 
GeneralRe: Updating database Pin
GuyThiebaut30-Sep-07 21:40
professionalGuyThiebaut30-Sep-07 21:40 
QuestionHow many Threads ? Pin
AliAmjad30-Sep-07 2:38
AliAmjad30-Sep-07 2:38 
AnswerRe: How many Threads ? Pin
Luc Pattyn30-Sep-07 4:51
sitebuilderLuc Pattyn30-Sep-07 4:51 
Hi,

as a first approximation, this is what you could do:
- write and run the code to use a single thread; observe the CPU load (with Task Manager)
as a percentage.
- The inverse number is the number of threads you want, so if it is close to 100% extra
threads won't bring you anything; if e.g. it is near 25% using four threads MIGHT increase
the performance by four, bringing the CPU load to 100%. More threads than that won't help you.

Remarks:
1.
if the above would tell you you need a lot of threads, then don't do it; something must be
wrong in your code (e.g. you have some Thread.Sleep() calls included, or are blocked by
something else; solve that first).
2.
most often you don't need many threads doing similar things; 2 to 4 should suffice;
as a rule of thumb don't go beyond 2 per processor (assuming you have a multi-core or some
hyperthreading CPU).

Hope this helps.


Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


Questiondata set vs data reader Pin
nilam1130-Sep-07 2:35
nilam1130-Sep-07 2:35 
AnswerRe: data set vs data reader Pin
AliAmjad30-Sep-07 2:44
AliAmjad30-Sep-07 2:44 
GeneralRe: data set vs data reader Pin
Colin Angus Mackay30-Sep-07 2:53
Colin Angus Mackay30-Sep-07 2:53 
GeneralRe: data set vs data reader Pin
nilam1130-Sep-07 2:56
nilam1130-Sep-07 2:56 
GeneralRe: data set vs data reader Pin
Colin Angus Mackay30-Sep-07 3:04
Colin Angus Mackay30-Sep-07 3:04 
GeneralRe: data set vs data reader Pin
Vimalsoft(Pty) Ltd30-Sep-07 20:15
professionalVimalsoft(Pty) Ltd30-Sep-07 20:15 
Questionupdation of o/p of sql query execution Pin
nilam1130-Sep-07 2:32
nilam1130-Sep-07 2:32 
AnswerRe: updation of o/p of sql query execution Pin
Colin Angus Mackay30-Sep-07 2:55
Colin Angus Mackay30-Sep-07 2:55 
GeneralRe: updation of o/p of sql query execution Pin
nilam1130-Sep-07 2:59
nilam1130-Sep-07 2:59 
GeneralRe: updation of o/p of sql query execution Pin
Colin Angus Mackay30-Sep-07 3:04
Colin Angus Mackay30-Sep-07 3:04 
Questioncrystal report problem Pin
magedhv30-Sep-07 2:22
magedhv30-Sep-07 2:22 
AnswerRe: crystal report problem Pin
Indrora30-Sep-07 7:42
Indrora30-Sep-07 7:42 
GeneralRe: crystal report problem Pin
magedhv30-Sep-07 23:15
magedhv30-Sep-07 23:15 
QuestionVB Login Form connect to a DB Pin
Brad^30-Sep-07 1:49
Brad^30-Sep-07 1:49 
AnswerRe: VB Login Form connect to a DB Pin
Paul Conrad30-Sep-07 13:38
professionalPaul Conrad30-Sep-07 13:38 
QuestionLicence Key generation Pin
moorthyuk29-Sep-07 23:00
moorthyuk29-Sep-07 23:00 
AnswerRe: Licence Key generation Pin
Christian Graus29-Sep-07 23:11
protectorChristian Graus29-Sep-07 23:11 

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.