Hi,
I am new to multithreading, and I am considering
implementing multithreading in my code.
I am using MDI
application with two child forms. On first child form I have all the
controls and user interface (ChildForm1).
Second child form is
used for data analisys and drawing graphs (ChildForm2).
ChildForm1
implements:
1) serial port communication (communication with
microprocessor on PCB board)
2) data acquisition from intrument connected to computer (LAN)
(up to 200ms for each data acquisition)
3) data processing and controls
Currently I am using timer
control to comminicate over serial port (10 times per second - checking
the conditions), triggering
data acquisition (when conditions
are met) and finaly processing data and drawing graphs on another child
form (real time).
As I use single thread, I am experiencing some
delays (application not running smoothly as it waits for comm process
and data processing).
What would be the right approach
in setting multithread application ?