A parallel real-time knowledge-based system and its application to diesel engine diagnostics