This article starts new series that is dedicated to some useful VCL classes. Now let’ look at TCollection class. TCollection is a container for TCollectionItem objects. The VCL controls (such as TDBGrid, TListView, TStatusBar, etc) widely use objects derived from TCollection.
The VCL includes TThread class – an abstract class that enables creation of separate threads of execution in an application.
Introduction. It was mentioned in the previous article that the VCL includes TCriticalSection object used to prevent simultaneous access to global objects / variables. I want to show you that there is not any “magic” in the VCL. All things that can be done with the VCL also can be […]
TThreadComponent – a native VCL component that allows quick and easy threading.
“Mutex” is an abbreviation of “Mutual Execution”. The CreateMutex function creates named or unnamed mutex object.
Events are very important synchronization objects. Using mutexs, events, critical sections together allow us to create complex synchronization objects.
One of common usage of threads is a client request processing.Server application should create one or more threads per client in order to process their requests concurrently without blocking. This article is dedicated to common way of creating threads that process messages (or “client requests”) sequentially.