Click here to Skip to main content
15,905,874 members
Home / Discussions / C#
   

C#

 
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 
Thread priority gives you absolutely no control in which order threads are executed. It's just an indicator that if the processor is fully used that one thread gets more of it than another thread. It might even occur that a low priority thread can finish before a high priority thread just because it makes less calculations. So in your example it's correct behaviour that both threads run parallel - only that Thread-B gets a bit more cpu power. I would even go so far that on dual core processors (assuming no other threads/processes are running beside these two) that the priority would not have any effect at all.

If you want Thread-A to run after Thread-B has finished then Thread-B should call Set() at its very end and not somewhere in the middle.
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 
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 
AnswerRe: creating dynamic checkboxes Pin
J4amieC17-Apr-06 22:00
J4amieC17-Apr-06 22:00 
QuestionWindows Form icon Pin
TheEagle17-Apr-06 21:15
TheEagle17-Apr-06 21:15 
AnswerRe: Windows Form icon Pin
vatzcar17-Apr-06 21:48
vatzcar17-Apr-06 21:48 
GeneralRe: Windows Form icon Pin
TheEagle19-Apr-06 7:02
TheEagle19-Apr-06 7:02 
QuestionFilling datatable with recordset data using OleDBDataAdapter's fill method Pin
Maau2117-Apr-06 20:55
Maau2117-Apr-06 20:55 

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.