Click here to Skip to main content
15,908,166 members
Home / Discussions / C#
   

C#

 
GeneralRe: multithread performance problem for web service call Pin
George_George5-Feb-09 2:47
George_George5-Feb-09 2:47 
GeneralRe: multithread performance problem for web service call Pin
harold aptroot5-Feb-09 3:40
harold aptroot5-Feb-09 3:40 
GeneralRe: multithread performance problem for web service call Pin
George_George7-Feb-09 1:31
George_George7-Feb-09 1:31 
GeneralRe: multithread performance problem for web service call Pin
harold aptroot7-Feb-09 2:25
harold aptroot7-Feb-09 2:25 
GeneralRe: multithread performance problem for web service call Pin
George_George7-Feb-09 2:39
George_George7-Feb-09 2:39 
GeneralRe: multithread performance problem for web service call Pin
harold aptroot7-Feb-09 4:07
harold aptroot7-Feb-09 4:07 
GeneralRe: multithread performance problem for web service call Pin
George_George7-Feb-09 22:26
George_George7-Feb-09 22:26 
GeneralRe: multithread performance problem for web service call Pin
harold aptroot7-Feb-09 23:51
harold aptroot7-Feb-09 23:51 
1) Alright it looks like it should be doing it sequentially, otherwise Random.NextDouble could fail, no method in System.Random is threadsafe.
But it should barely take any time at all.

2) Documents... well. Take Amdahl's_law for example, in which P is the proportion of the program that has been made parallel. P would be zero, so you'd get the limit 1 / (1 - 0 + 0/n) where n goes to infinity. So as you can see, the answer is 1, independent of n, meaning: no benefit at all. But of course we knew that that already, since we made no improvement.

3?) I see no good reason for this to be slow, it should be blazingly fast - it's only generating a bunch of random numbers and sending them over right?



GeneralRe: multithread performance problem for web service call Pin
George_George8-Feb-09 0:22
George_George8-Feb-09 0:22 
GeneralRe: multithread performance problem for web service call Pin
harold aptroot8-Feb-09 0:37
harold aptroot8-Feb-09 0:37 
GeneralRe: multithread performance problem for web service call Pin
George_George8-Feb-09 0:48
George_George8-Feb-09 0:48 
GeneralRe: multithread performance problem for web service call Pin
harold aptroot8-Feb-09 1:02
harold aptroot8-Feb-09 1:02 
GeneralRe: multithread performance problem for web service call Pin
George_George8-Feb-09 1:07
George_George8-Feb-09 1:07 
GeneralRe: multithread performance problem for web service call Pin
harold aptroot8-Feb-09 5:20
harold aptroot8-Feb-09 5:20 
AnswerRe: multithread performance problem for web service call Pin
PIEBALDconsult3-Feb-09 4:23
mvePIEBALDconsult3-Feb-09 4:23 
GeneralRe: multithread performance problem for web service call Pin
George_George4-Feb-09 21:53
George_George4-Feb-09 21:53 
GeneralRe: multithread performance problem for web service call Pin
PIEBALDconsult5-Feb-09 3:43
mvePIEBALDconsult5-Feb-09 3:43 
GeneralRe: multithread performance problem for web service call Pin
George_George7-Feb-09 1:25
George_George7-Feb-09 1:25 
GeneralRe: multithread performance problem for web service call Pin
PIEBALDconsult7-Feb-09 4:00
mvePIEBALDconsult7-Feb-09 4:00 
GeneralRe: multithread performance problem for web service call Pin
George_George7-Feb-09 22:23
George_George7-Feb-09 22:23 
GeneralRe: multithread performance problem for web service call Pin
PIEBALDconsult8-Feb-09 2:37
mvePIEBALDconsult8-Feb-09 2:37 
QuestionMAC Address Pin
mehdy_1373-Feb-09 2:17
mehdy_1373-Feb-09 2:17 
AnswerRe: MAC Address Pin
SeMartens3-Feb-09 2:22
SeMartens3-Feb-09 2:22 
GeneralRe: MAC Address Pin
mehdy_1373-Feb-09 4:28
mehdy_1373-Feb-09 4:28 
GeneralRe: MAC Address Pin
SeMartens3-Feb-09 4:36
SeMartens3-Feb-09 4:36 

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.