Welcome![Sign In][Sign Up]
Location:
Search - Ontimer SetTimer KillTimer

Search list

[Windows Developwm_timer

Description: 这项计划要求( WM_TIMER ) ,是专为时间维持。 在这个项目中我用三( 3 )功能( SetTimer , OnTimer , KillTimer ) ,这些功能都支持该计划的选择-This program called (WM_TIMER) ,is designed for time keeping. In this program I used three (3) functions (SetTimer,OnTimer,KillTimer),these function support the program with option
Platform: | Size: 1957888 | Author: 张涛 | Hits:

[File FormatVisual

Description: 本实例中将利用 SetTimer、OnTimer 和 KillTimer 这三个函数实现可调节计时器程序。 本实例编写的计时器有倒计时和正常计时两种计时方式,还可以水平滑块调节计时的快 慢。-UINT SetTimer( UINT nIDEvent, UINT nElapse, void (CALLBACK EXPORT* lpfnTimer)( HWND, UINT, UINT, DWORD) )
Platform: | Size: 56320 | Author: 何治强 | Hits:

[Data structsclock

Description: 1. 首先建立一个基本对话的exe工程,并命名为time; 2. 在BOOL CTimeDlg::OnInitDialog()函数内建立一个计时器,SetTimer(1,1000,NULL) 3. 再用classwizard建立消息响应函数void CTimeDlg::OnTimer(UINT nIDEvent),在里面输入代码如下:Invalidate() 4. 再用classwizard建立消息响应函数void CTimeDlg::OnDestroy(),在里面输入代码如下:KillTimer(1) 以此来消除计时器; 5. 在void CTimeDlg::OnPaint()里输入上面的算法; 6. 为CtimeDlg类添加头文件math.h,代码:#include "math.h"。 7. 编译、链接、运行。 -1. First, the establishment of a basic dialogue exe project, and named the time 2. In the BOOL CTimeDlg:: OnInitDialog () function is the establishment of a timer, SetTimer (1,1000, NULL) 3. Then the establishment of the message to respond to classwizard function void CTimeDlg:: OnTimer (UINT nIDEvent), enter the code inside is as follows: Invalidate () 4. then classwizard set-up message response function void CTimeDlg:: OnDestroy (), enter the code inside the following: KillTimer (1) to this to eliminate the timer 5. void CTimeDlg:: OnPaint () where importation of the above algorithm 6. CtimeDlg class to add header file for the math.h, the code:# include " math.h" . 7. Compile, link and run.
Platform: | Size: 1911808 | Author: tmacq3 | Hits:

[OS programJob

Description: 操作系统课程设计:单道系统三种作业调度算法模拟 ○1、在数据结构上选择单向链队,即后备作业队列的每个结点表示一个作业块,每个作业块即JCB包含如下信息:作业名,到达时间,所需时间,已运行时间,作业状态,所需主存大小,所需磁带机数目。 ○2、提交新作业时,调用函数EnQueue(m_JobName,m_NeedTime)即将作业插入到后备作业队列的末尾。接着判断内存作业队列是否为空,若为空则将后备作业调入内存运行并启动计时器SetTimer(1,1000,NULL),更新列表框控件的信息的显示。 ○3、 由于计时器的时间间隔设置为1000毫秒,故每秒钟将调用一次OnTimer(UINT nIDEvent)函数,检查作业的运行状态,若作业的已运行时间大于等于所需时间,则将该作业从内存作业队列中撤销,并处理机依照某一个作业调度算法(FCFS先来先服务,SJF短作业优先,HRN高响应比优先调度算法)进行下一个作业的调度,更新列表框控件的信息显示。 ○4、当所有作业都调度完成时,撤销计时器即调用函数KillTimer(1).-Operating System Course Design: Single-channel scheduling algorithm for simulation of three operating systems ○ 1, the data structure select the one-way chain force, the backup job queue of each node represents an operation blocks, each block of the JCB job contains the following information: job name, arrival time, the time has run time , job status, the required size of main memory, the required number of tape drives. ○ 2, submit a new job, call the function EnQueue (m_JobName, m_NeedTime) will work into the back end of the job queue. Then, the job queue to determine whether the memory is empty, if empty will be transferred to the memory backup job to run and start the timer SetTimer (1,1000, NULL), update the list box controls the display of information. ○ 3, set the timer interval to 1000 milliseconds, so the second will be called once OnTimer (UINT nIDEvent) function to check the operational status of jobs, if the job has been running longer than the mean time, it will job q
Platform: | Size: 294912 | Author: 何启明 | Hits:

CodeBus www.codebus.net