PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV 27 feature!
  • 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 27
Comments
Click [Add] to post a comment