我有一个Controller类和一个Monitor工作线程。Controller线程看起来像这样publicclassControllerA{publicvoidControllerA(){try{doWork();}catch(OhNoExceptione){//catchexception}publicvoiddoWork()throwsOhNoException{newThread(newRunnable(){publicvoidrun(){//NeedstomonitorresourcesofControllerA,//ifthingsgowrong,itneedstothro