Click here to Skip to main content
15,915,319 members
Home / Discussions / C#
   

C#

 
GeneralRe: array of object Pin
Christian Graus20-Jan-05 12:22
protectorChristian Graus20-Jan-05 12:22 
GeneralRe: array of object Pin
Dennis C. Dietrich20-Jan-05 13:28
Dennis C. Dietrich20-Jan-05 13:28 
GeneralRe: array of object Pin
Christian Graus20-Jan-05 13:30
protectorChristian Graus20-Jan-05 13:30 
GeneralRe: array of object Pin
Dennis C. Dietrich20-Jan-05 13:33
Dennis C. Dietrich20-Jan-05 13:33 
Generalwindows application vs console application mode Pin
Pilaf20-Jan-05 9:01
Pilaf20-Jan-05 9:01 
GeneralRe: windows application vs console application mode Pin
Dave Kreskowiak20-Jan-05 13:21
mveDave Kreskowiak20-Jan-05 13:21 
GeneralCheck for DVD-ROM Pin
jooky20-Jan-05 8:24
jooky20-Jan-05 8:24 
GeneralThreadPool ThreadSleep issue. Pin
Tristan Rhodes20-Jan-05 8:03
Tristan Rhodes20-Jan-05 8:03 
I've got a small application that keeps track of a number of small tasks using a threadpool, which suits the soltuion fine.

I'm running 6 objects at a time, and they work fine. However, while attempting to reduce the load on the CPU from some of the processes spin/waiting, I added a ThreadSleep.

This has caused the display to behave oddly. The ThreadSleep seems to free the resources used by the particular thread of the ThreadPool. Which causes the next item in the queue to be processed with the same local values as the item i just put to sleep. (The list basicaly displays blocks of replicataed items)

This is causing me a degree of confusion, as well as a problem, as I do not want to release the thread, simply pause it for 1-2ms per itteration of the process.

Is there anyway to pause a ThreadPool thread, without releasing it?
I've tried using ThreadSpin, but this still chews up a large chunk of CPU power unesscesarily, so i'm looking for an alternative solution.

Cheers

Cata
GeneralC# bittorrents Pin
kshet2620-Jan-05 7:14
kshet2620-Jan-05 7:14 
GeneralRe: C# bittorrents Pin
Heath Stewart20-Jan-05 7:20
protectorHeath Stewart20-Jan-05 7:20 
GeneralArrayList Pin
Newbie_Toy20-Jan-05 6:17
Newbie_Toy20-Jan-05 6:17 
GeneralRe: ArrayList Pin
Heath Stewart20-Jan-05 7:29
protectorHeath Stewart20-Jan-05 7:29 
GeneralRe: ArrayList Pin
Newbie_Toy20-Jan-05 19:25
Newbie_Toy20-Jan-05 19:25 
GeneralRe: ArrayList Pin
Heath Stewart21-Jan-05 5:53
protectorHeath Stewart21-Jan-05 5:53 
GeneralArray Parameter to Method In COM ActiveX Control Pin
tdciswalker20-Jan-05 5:55
tdciswalker20-Jan-05 5:55 
GeneralRe: Array Parameter to Method In COM ActiveX Control Pin
Heath Stewart20-Jan-05 7:18
protectorHeath Stewart20-Jan-05 7:18 
GeneralI've Seriose Problem.. Pin
Shady Aly20-Jan-05 5:32
Shady Aly20-Jan-05 5:32 
GeneralRe: I've Seriose Problem.. Pin
Heath Stewart20-Jan-05 7:06
protectorHeath Stewart20-Jan-05 7:06 
GeneralOSSOCK::recv bottleneck Pin
iandmcneill20-Jan-05 4:41
iandmcneill20-Jan-05 4:41 
Questionkeep alive error? Pin
Anonymous20-Jan-05 4:30
Anonymous20-Jan-05 4:30 
GeneralListview Pin
Newbie_Toy20-Jan-05 4:19
Newbie_Toy20-Jan-05 4:19 
GeneralRe: Listview Pin
Heath Stewart20-Jan-05 6:59
protectorHeath Stewart20-Jan-05 6:59 
QuestionHelp!, how does drawing work?? Pin
Serrrix20-Jan-05 2:51
Serrrix20-Jan-05 2:51 
AnswerRe: Help!, how does drawing work?? Pin
Heath Stewart20-Jan-05 6:55
protectorHeath Stewart20-Jan-05 6:55 
GeneralRe: Help!, how does drawing work?? Pin
Serrrix20-Jan-05 8:30
Serrrix20-Jan-05 8:30 

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.