This thesis is concerned with design and implementation of real-time system. The design processes include communication and synchronization of tasks. There are five main topics in this thesis. They are: (1) Background; (2) Detailed concepts in real time systems; (3) QNX—A real time UNIX based operating system; (4) Description of the race cars and tracks used for experiments; (5) Software design and implementation in real-time system.;The laboratory of the race car system has three experiments, each of which is independent real-time application established on QNX that provides multi-threaded programming. Mutual exclusion and message passing are used in the synchronization of multiple threads.