Home | Sign in | English UK
  • This lesson will teach you the following concepts
  • Definition
  • Example
Lesson 7.6. The threads
This lesson will teach you the following concepts
  • What are the threads?

Estimated time: 10 mn
Previous LessonTable of contentsNext Lesson
The threads are used to run a code (or processes) in parallel of main application. Therefore, several long processes can be run in background task without locking the main application (also called "Main thread").
The threads replace some types of timers.
In most cases, a secondary thread is used to detect an event such as a user action, an incoming email, a phone call, ...
Examples for using threads:
  • Retrieving emails in background task while typing a new email.
  • Communication application: managing the phone calls, communication by socket, ...
WINDEV allows you to:
  • manage the threads (Thread* functions).
  • use "signals" in order to synchronize several threads (Signal* functions).
  • use the threads with "semaphores" in order to manage the access to the resources shared by different threads (Semaphore* functions).


WINDEV is supplied with several unit examples allowing you to understand the benefit and the use of threads:
  • The threads (Pool).
  • The threads.
See Managing threads for more details.
Previous LessonTable of contentsNext Lesson
Minimum version required
  • Version 24
Click [Add] to post a comment