ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WINDEV Tutorial / Tutorial - External database
  • In this lesson you will learn the following concepts
  • Definition
  • Example
Lesson 7.6. The threads
In this lesson you will learn the following concepts
  • What are threads?
Lesson duration

Estimated time: 10 mn
Previous LessonTable of contentsNext Lesson
Definition
Threads allow running code (or processes) in parallel with the main application. Therefore, several long processes can be run in the background without locking the main application (also called "Main thread").
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, etc.
Examples of the use of threads:
  • Retrieving emails in the background, while writing a new email.
  • Communication application: managing phone calls, communication via sockets, etc.
WINDEV allows you to:
  • manage threads (Thread* functions).
  • use "signals" in order to synchronize several threads (Signal* functions).
  • use threads with "semaphores" to control access to the resources shared by different threads (Semaphore* functions).
Example

Example

WINDEV is provided with multiple unit examples allowing you to understand the advantages and the use of threads:
  • The threads (Pool).
  • The threads.
For more details on how to handle threads with WINDEV, see Managing threads.
Previous LessonTable of contentsNext Lesson
Minimum version required
  • Version 28
Comments
Click [Add] to post a comment

Last update: 11/09/2022

Send a report | Local help