Click here to Skip to main content
15,893,487 members
Home / Discussions / C#
   

C#

 
GeneralRe: hacked? Pin
Anonymous31-Jan-04 1:16
Anonymous31-Jan-04 1:16 
GeneralParentForm and a null reference Pin
Andrew McLellan26-Jan-04 1:47
Andrew McLellan26-Jan-04 1:47 
GeneralRe: ParentForm and a null reference Pin
Broken God26-Jan-04 2:06
Broken God26-Jan-04 2:06 
GeneralRe: ParentForm and a null reference Pin
AWoodgate26-Jan-04 6:23
AWoodgate26-Jan-04 6:23 
GeneralRe: ParentForm and a null reference Pin
Broken God27-Jan-04 8:32
Broken God27-Jan-04 8:32 
General.NET Serialization and versioning Pin
dabs26-Jan-04 1:04
dabs26-Jan-04 1:04 
GeneralRe: .NET Serialization and versioning Pin
Heath Stewart26-Jan-04 2:18
protectorHeath Stewart26-Jan-04 2:18 
GeneralGDI+ Problem Pin
occcy26-Jan-04 0:02
occcy26-Jan-04 0:02 
GeneralRe: GDI+ Problem Pin
Broken God26-Jan-04 2:10
Broken God26-Jan-04 2:10 
GeneralRe: GDI+ Problem Pin
occcy26-Jan-04 2:13
occcy26-Jan-04 2:13 
GeneralRe: GDI+ Problem Pin
Heath Stewart26-Jan-04 3:04
protectorHeath Stewart26-Jan-04 3:04 
GeneralRe: GDI+ Problem Pin
Heath Stewart26-Jan-04 3:09
protectorHeath Stewart26-Jan-04 3:09 
GeneralRe: GDI+ Problem Pin
leppie26-Jan-04 6:06
leppie26-Jan-04 6:06 
GeneralSharing process resources Pin
Jucovschi Petru25-Jan-04 22:57
Jucovschi Petru25-Jan-04 22:57 
GeneralRe: Sharing process resources Pin
OmegaSupreme26-Jan-04 0:57
OmegaSupreme26-Jan-04 0:57 
GeneralOrganization of ideas Pin
Shree25-Jan-04 21:01
Shree25-Jan-04 21:01 
GeneralRe: Organization of ideas Pin
Colin Angus Mackay26-Jan-04 1:00
Colin Angus Mackay26-Jan-04 1:00 
GeneralProblem about IP Multicast Pin
Korby25-Jan-04 18:22
Korby25-Jan-04 18:22 
GeneralRe: Problem about IP Multicast Pin
Heath Stewart26-Jan-04 3:02
protectorHeath Stewart26-Jan-04 3:02 
GeneralMultithreading issue Pin
maria_p25-Jan-04 8:51
maria_p25-Jan-04 8:51 
GeneralRe: Multithreading issue Pin
Colin Angus Mackay25-Jan-04 11:22
Colin Angus Mackay25-Jan-04 11:22 
maria_p wrote:
say again multiple threads are running in an application, in one thread I implement a lock on a certain portion of code (so this must complete execution before any other thread can resume control)...

Now, what I remember from my concurrency lectures (8 to 10 years ago) if you lock a piece of code (the "critical section") other code in other threads can still execute as they are not preventing from executing, they just can't execute the locked code.

Think of the critical section as the centre of a highway intersection with an American 4-way Stop sign. (In America the rule is the first to arrive has right of way and can pass through the intersection). So the first car arrives and is allowed onto the intersection. A fraction of a second later another car arrives from a different direction, it must wait until the first car has passed through. This is locking. Now, just because some traffic has to wait to gain access to this intersection doesn't stop the traffic flowing on an interstate a mile away.

Does this help you understand how concurrency (multithreading) works?

--Colin Mackay--

EuroCPian Spring 2004 Get Together[^]
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar


GeneralRe: Multithreading issue Pin
maria_p26-Jan-04 1:53
maria_p26-Jan-04 1:53 
GeneralRe: Multithreading issue Pin
Heath Stewart26-Jan-04 2:53
protectorHeath Stewart26-Jan-04 2:53 
GeneralRe: Multithreading issue Pin
Heath Stewart26-Jan-04 2:54
protectorHeath Stewart26-Jan-04 2:54 
GeneralWierd irregularities between C# and VB.net Pin
dalm25-Jan-04 8:44
dalm25-Jan-04 8:44 

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.