Memory Protection and Exception Handling in a Real-Time Operating System