首页> 中文期刊> 《西安科技大学学报》 >多线程保护应用程序自动加载研究与实践

多线程保护应用程序自动加载研究与实践

     

摘要

在计算机系统正常运行过程中用户从客户端启动加载自己的应用程序时常常希望程序在服务进程中不会被用户关闭掉程序,采用钩子函数拦截系统消息是一种解决思路和方法,但会受到系统的制约.可以利用主程序即主进程来构造多个辅助线程,用来监控主进程的运行情况,一旦主进程发生异常,就立刻恢复主进程的原始状态,这样就实现了应用程序无法关闭客户启动时加载自己的应用程序,保证在服务进程中该程序的正常运行.%Users often hope that the program will not be closed in the service process when they start loading their applications program from client under the course of the computer system' s normal operation. Using hook function to intercept system message is a solution and method,but which subjects to the constraints of the system. Here the main program, primary process, can be used to construct multiple worker threads for monitoring the running of main process, which will help to immediately restore the o-riginal state of the main process when an exception occurs, and realize that the application can not be turned off when users start loading their own applications, and ensure the normal operation of the program in a service process.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号