我使用logging.handlers.TimedRotatingFileHandler在我的django项目中轮换访问日志。'when‘属性的设置是’午夜‘,大多数时候旋转效果很好,但有时它不能像我想要的那样工作,就像下面这样:
-rw-rw-r-- 1 work work 5.5M Jun 28 23:59 sd.log.2014-06-28
-rw-rw-r-- 1 work work 5.1M Jun 27 23:59 sd.log.2014-06-27
-rw-rw-r-- 1 work work 5.2M Jun 26 23:59 sd.log.2014-06-26
-rw
据我所知,必须验证一些条件,才能使进程继续运行。如果它们未被确认,处理器将阻塞该进程以避免浪费时间。验证完这些条件后,流程进入ready state。
然而,我在“现代操作系统Andrew Tanenbaum”一书中遇到了这样一句话:There are two types of processes which are system processes and user processes. If processor takes a disk interrupt when it executes a user application, the system makes a decision to