Board index » delphi » Multitask simulation in Delphi.

Multitask simulation in Delphi.

Hi there,

I need to simulate a multitasking in wfw3.11 having form calls in
frontground (FG) and comms and the background (BG).
I was thinking of creating a hiding window to handle the BG task. This
window would have to use some knowned vars to the DG window. As an
alternative, the BG could write values to a file wich would be
accessible to the FG window.

I need some ideas on how-to, or a template of a solution, or a place
where to get additional info, and even a proper book would help.

Thanks.

Quote

Faruk Remane, Lisboa.
frem...@individual.puug.pt
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 

Re:Multitask simulation in Delphi.


Hi there,

I need to simulate a multitasking in wfw3.11 having form calls in
frontground (FG) and comms and the background (BG).
I was thinking of creating a hiding window to handle the BG task. This
window would have to use some knowned vars to the DG window. As an
alternative, the BG could write values to a file wich would be
accessible to the FG window.

I need some ideas on how-to, or a template of a solution, or a place
where to get additional info, and even a proper book would help.

Thanks.

Quote

TECNIMIL, Lda
Travessa Carlo Paggi, 7A                Tel: +351.1.778 6155
1500 Lisboa, PORTUGAL.                  Fax: +351.1.778 3474
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Re:Multitask simulation in Delphi.


Quote
>I need to simulate a multitasking in wfw3.11 having form calls in
>frontground (FG) and comms and the background (BG).
>I was thinking of creating a hiding window to handle the BG task. This
>window would have to use some knowned vars to the DG window. As an
>alternative, the BG could write values to a file wich would be
>accessible to the FG window.

I wish you gave more detail here !

The best way is to use the windows messages created on receive/error
and buffer full. A properly set up incoming buffer should eliminate
losing any data. Now process this buffer on the CN_Receive (or
something similar) windows messages, while your program can continue
it's other duties in the mean time. Interrupt drivven that is. The
normal flow of operation is interrupted upon every receive, which you
finish processing first (make this code short ans sweet for
efficiencey) before the normal flow in resumed. You could also service
the buffer upon a windows timer (see the TTimet Component)

Quote
>I need some ideas on how-to, or a template of a solution, or a place
>where to get additional info, and even a proper book would help.

As above.

For more specific info you can contact me via E-Mail at
<pref...@iafrica.com>

Quote
>Thanks.

pleasure

Cobus

----------------------------------
Cobus van Eeden
University of Pretoria
South Africa
Department of Electronic Engineering
<pref...@iafrica.com> or <s9354...@babel.ee.up.ac.za>

Re:Multitask simulation in Delphi.


Hi there,

I need to simulate a multitasking in wfw3.11 having form calls in
frontground (FG) and comms and the background (BG).
I was thinking of creating a hiding window to handle the BG task. This
window would have to use some knowned vars to the DG window. As an
alternative, the BG could write values to a file wich would be
accessible to the FG window.

I need some ideas on how-to, or a template of a solution, or a place
where to get additional info, and even a proper book would help.

Thanks.

Quote

TECNIMIL, Lda
Travessa Carlo Paggi, 7A                Tel: +351.1.778 6155
1500 Lisboa, PORTUGAL.                  Fax: +351.1.778 3474
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Re:Multitask simulation in Delphi.


Hi there,

I need to simulate a multitasking in wfw3.11 having form calls in
frontground (FG) and comms and the background (BG).
I was thinking of creating a hiding window to handle the BG task. This
window would have to use some knowned vars to the DG window. As an
alternative, the BG could write values to a file wich would be
accessible to the FG window.

I need some ideas on how-to, or a template of a solution, or a place
where to get additional info, and even a proper book would help.

Thanks.

Quote

TECNIMIL, Lda
Travessa Carlo Paggi, 7A                Tel: +351.1.778 6155
1500 Lisboa, PORTUGAL.                  Fax: +351.1.778 3474
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Re:Multitask simulation in Delphi.


Hi there,

I need to simulate a multitasking in wfw3.11 having form calls in
frontground (FG) and comms and the background (BG).
I was thinking of creating a hiding window to handle the BG task. This
window would have to use some knowned vars to the DG window. As an
alternative, the BG could write values to a file wich would be
accessible to the FG window.

I need some ideas on how-to, or a template of a solution, or a place
where to get additional info, and even a proper book would help.

Thanks.

Other Threads