Click here to Skip to main content
15,891,775 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Question about Thread.Sleep() Pin
Wilco07-May-07 11:03
Wilco07-May-07 11:03 
GeneralRe: Question about Thread.Sleep() Pin
Tristan Rhodes7-May-07 11:14
Tristan Rhodes7-May-07 11:14 
AnswerRe: Question about Thread.Sleep() Pin
simsem7-May-07 20:55
simsem7-May-07 20:55 
GeneralRe: Question about Thread.Sleep() Pin
Tristan Rhodes8-May-07 2:51
Tristan Rhodes8-May-07 2:51 
GeneralRe: Question about Thread.Sleep() Pin
Colin Angus Mackay10-May-07 2:14
Colin Angus Mackay10-May-07 2:14 
GeneralRe: Question about Thread.Sleep() Pin
Tristan Rhodes10-May-07 2:35
Tristan Rhodes10-May-07 2:35 
GeneralRe: Question about Thread.Sleep() Pin
Colin Angus Mackay10-May-07 3:42
Colin Angus Mackay10-May-07 3:42 
GeneralRe: Question about Thread.Sleep() Pin
Tristan Rhodes10-May-07 4:29
Tristan Rhodes10-May-07 4:29 
I'm intrigued by the mechanics for this.

Clearly there is going to be a wait for the database response to process and return, and i'd like other threads to use that time instead of the current thread. I've been lead to believe that by performing a standard non async query, the thread is locked and not shared leading to a performance hit with lots of concurrent request, whilst performing a thread.sleep would enable it to be freed up and process other requests whilst waiting for the DB to response. In which case, wrapping an async operation in a Sleep loop would give up the thread whilst waiting for a response.

But i'm guessing i've got the wrong end of the stick. Where have i gone wrong?

Cheers

T

-------------------------------

Carrier Bags - 21st Century Tumbleweed.

GeneralRe: Question about Thread.Sleep() Pin
Colin Angus Mackay10-May-07 5:54
Colin Angus Mackay10-May-07 5:54 
GeneralRe: Question about Thread.Sleep() Pin
Tristan Rhodes10-May-07 6:25
Tristan Rhodes10-May-07 6:25 
QuestionHow do you halt a program while waiting for a KeyDown? Pin
vonLochow6-May-07 23:28
vonLochow6-May-07 23:28 
AnswerRe: How do you halt a program while waiting for a KeyDown? Pin
Arun.Immanuel7-May-07 1:30
Arun.Immanuel7-May-07 1:30 
QuestionWindows Workflow Rules question Pin
abc8766-May-07 21:21
abc8766-May-07 21:21 
Questionneed help with remoting incoming event handler Pin
neodeaths6-May-07 16:34
neodeaths6-May-07 16:34 
AnswerRe: need help with remoting incoming event handler Pin
Wilco07-May-07 4:32
Wilco07-May-07 4:32 
QuestionProblem With Custom PaperSize In .NET Pin
AmirAlilou4-May-07 21:56
AmirAlilou4-May-07 21:56 
Questionhow do i set the values for my class variable for remoting? Pin
neodeaths3-May-07 23:22
neodeaths3-May-07 23:22 
QuestionCode convertor tool in Vb .net Pin
Balagurunathan S3-May-07 21:51
Balagurunathan S3-May-07 21:51 
AnswerRe: Code convertor tool in Vb .net Pin
Blumen3-May-07 23:02
Blumen3-May-07 23:02 
GeneralRe: Code convertor tool in Vb .net Pin
Balagurunathan S4-May-07 0:03
Balagurunathan S4-May-07 0:03 
GeneralRe: Code convertor tool in Vb .net Pin
Christian Graus6-May-07 17:58
protectorChristian Graus6-May-07 17:58 
AnswerRe: Code convertor tool in Vb .net Pin
Blumen7-May-07 5:48
Blumen7-May-07 5:48 
AnswerRe: Code convertor tool in Vb .net Pin
Dave Kreskowiak4-May-07 2:33
mveDave Kreskowiak4-May-07 2:33 
GeneralRe: Code convertor tool in Vb .net Pin
Blumen8-May-07 2:14
Blumen8-May-07 2:14 
GeneralRe: Code convertor tool in Vb .net Pin
Dave Kreskowiak8-May-07 3:46
mveDave Kreskowiak8-May-07 3:46 

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.