Click here to Skip to main content
15,921,203 members
Home / Discussions / C#
   

C#

 
GeneralRe: working with strings Pin
alexey N18-Apr-06 1:25
alexey N18-Apr-06 1:25 
GeneralRe: working with strings Pin
Stefan Troschuetz18-Apr-06 2:06
Stefan Troschuetz18-Apr-06 2:06 
AnswerRe: working with strings Pin
shezh18-Apr-06 3:53
shezh18-Apr-06 3:53 
Questiona weird problem in a member's setter. Pin
Green Fuze18-Apr-06 0:13
Green Fuze18-Apr-06 0:13 
AnswerRe: a weird problem in a member's setter. Pin
J4amieC18-Apr-06 0:18
J4amieC18-Apr-06 0:18 
GeneralRe: a weird problem in a member's setter. Pin
Green Fuze18-Apr-06 0:25
Green Fuze18-Apr-06 0:25 
QuestionLooping through Folders Pin
Pietman Kahl18-Apr-06 0:09
professionalPietman Kahl18-Apr-06 0:09 
AnswerRe: Looping through Folders Pin
alexey N18-Apr-06 0:49
alexey N18-Apr-06 0:49 
QuestionExtending WebBrowser in .Net 2.0 Pin
mustafakahraman17-Apr-06 23:43
mustafakahraman17-Apr-06 23:43 
AnswerRe: Extending WebBrowser in .Net 2.0 Pin
alexey N18-Apr-06 0:53
alexey N18-Apr-06 0:53 
GeneralRe: Extending WebBrowser in .Net 2.0 Pin
mustafakahraman19-Apr-06 4:48
mustafakahraman19-Apr-06 4:48 
QuestionAbout Thread Priority Pin
Bob_Sun17-Apr-06 23:16
Bob_Sun17-Apr-06 23:16 
AnswerRe: About Thread Priority Pin
Robert Rohde18-Apr-06 5:55
Robert Rohde18-Apr-06 5:55 
GeneralRe: About Thread Priority Pin
Bob_Sun18-Apr-06 6:01
Bob_Sun18-Apr-06 6:01 
GeneralRe: About Thread Priority Pin
Robert Rohde18-Apr-06 6:07
Robert Rohde18-Apr-06 6:07 
GeneralRe: About Thread Priority Pin
Bob_Sun18-Apr-06 6:43
Bob_Sun18-Apr-06 6:43 
GeneralRe: About Thread Priority Pin
LongRange.Shooter18-Apr-06 10:43
LongRange.Shooter18-Apr-06 10:43 
Even if priority defined the sequence of execution, you still are not guaranteed that the high-priority thread would come to completion after ending the process in the lower priority thread. The reason is that each thread is given a set amount of time to execute. Once that time expires the kernel moves onto the next thread, and so on. Priority defines how long a task will sit in the queue before it gets to run once again. That is why setting a thread to too high of a priority is dangerous. If you have a very tight loop in a thread running at the same level as the OS, you would remain up in the high-eschelon and run more than that OS would.

This gets even hairier if you are doing an interupt specific task (printing, IO, tcpip calls, etc.) since each time you do an interrupt, you get into an even different queue and have to wait for other tasks to complete as well as your interrupt driven task before you get to execute once again.

I suggest doing searches on OS Queue Theory to get a better understanding of queue management. This is OS 101 and operates like this, at a basic level, in any multi-threaded environment. There are entire schools of thread management to determine the most efficient queue management algorithms to make every task run transparent to the thread management while maintaining excellant performance on high priority threads.
GeneralRe: About Thread Priority Pin
Bob_Sun18-Apr-06 14:07
Bob_Sun18-Apr-06 14:07 
GeneralRe: About Thread Priority Pin
LongRange.Shooter18-Apr-06 17:35
LongRange.Shooter18-Apr-06 17:35 
QuestionHow to print directly to parallel port Pin
vatzcar17-Apr-06 23:12
vatzcar17-Apr-06 23:12 
QuestionSubscribing on events… a must? Pin
anderslundsgard17-Apr-06 22:20
anderslundsgard17-Apr-06 22:20 
AnswerRe: Subscribing on events… a must? Pin
J4amieC17-Apr-06 22:47
J4amieC17-Apr-06 22:47 
GeneralRe: Subscribing on events… a must? Pin
anderslundsgard17-Apr-06 23:26
anderslundsgard17-Apr-06 23:26 
Questioncreating dynamic checkboxes Pin
umaheshchandra17-Apr-06 21:17
umaheshchandra17-Apr-06 21:17 
AnswerRe: creating dynamic checkboxes Pin
alexey N17-Apr-06 21:24
alexey N17-Apr-06 21:24 

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.