摘要 |
The invention relates to a method for synchronising program sections of a computer program. The program sections can run in parallel on different processors of a computer. Data transfer between the program sections is synchronised by providing a buffer. Unauthorised access to the buffer is prevented by means of a flag that is set automatically by buffer utilities. The data transfer between individual program sections is thus synchronised by the buffer synchronisation class only, which consists of the buffer, internal variables and the buffer utilities, is configured in a very simple manner and can thus be tested in operation and in a relatively simple manner by means of a computer comprising several processors. The data transfer is very efficient as the individual utilities are designed in a simple and short manner and thus require little processing time and as the data can be directly written in or read out of the buffer.
|