4D v13Processes |
||
|
4D v13
Processes
Processes
In addition to the manipulations explained in the video, you should note that: A process is an environment that possesses:
Processes can communicate between themselves in different ways:
They can:
A process only dies when the method it executes is completed. Processes generally serve the following purposes:
4D directly generates certain processes. A process is creating using the New process command: vProcessNumber:=New process(Method;Stack;Processname;Settings;...) This command line must be in the method. We recommend using the concept shown below; you’ll save time and clarity: C_TEXT($1)
As such, you can continue to work while having the statistics window at your fingertips. To trace the execution of a process (when you execute the New Process line), use the “step-by-step new process” button. This button executes the line and opens a second trace window in which you can follow the progress of the executed method in the process, independently of the calling method. For example, you can create a process that displays the time and elapsed time since the new process started. This example will give you the basics of setting up a time counter. Processes allow you to consider quick evolutions in your programming:
There are numerous examples of using processes. Here’s one more: you have updates to perform on an important database; however, these updates can be staggered by several seconds or even minutes without having an impact on your company’s performance. So you can:
This operation is quite feasible in client / server mode where a process (stored procedure) "runs" on the server and carries out the tasks to be performed:
|
PROPERTIES
Product: 4D |