06.08.2013 Views

JAVA-BASED REAL-TIME PROGRAMMING

JAVA-BASED REAL-TIME PROGRAMMING

JAVA-BASED REAL-TIME PROGRAMMING

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4. Exercises and Labs<br />

Getting approved<br />

To pass you need to show your solution to the lab supervisor. You should<br />

be able to explain what you have done and motivate your implementation.<br />

A working Java solution free of real-time problems is compulsory. Common<br />

problems that need to be fixed are race conditions (the washing machine burns<br />

up, etc.), potential data corruption and excessive use of CPU. You must use<br />

mailboxes for thread communication in your solution. Other primitives, such<br />

as semaphores and monitors are not allowed.<br />

Miscellaneous<br />

OwnerError<br />

The OwnerError is thrown when a putEvent (or similar) is called within a<br />

RTThread object using a different thread than the one associated with the<br />

object. Typically you get this error when starting washing programs using<br />

program.wash() instead of program.start() within WashingController .process-<br />

Button(), i.e. you let the simulation thread run the washing program instead<br />

of starting a new washing program thread.<br />

140 2012-08-29 16:05

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!