Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jun : Re: IdTCPServer
| Subject: | Re: IdTCPServer |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Sun, 11 Jun 2006 00:04:16 |
"Jamie Dale" <j.dale@turboz.net> wrote in message
news:448b6102@newsgroups.borland.com...
> If using a Critical section, it will block other threads....
The other threads will only be blocked if they try to enter a critical
section that is locked by other thread.
> Will those threads exit or will they wait until they
> can enter the critical section?
They will wait until the critical section is unlocked. Only one thread can
enter a critical section at a time.
> will another thread that tries to access it while it is locked,
> queue and wait?
Yes.
Gambit