有哪些执行调度的方法? [英] What are ways to perform scheduling?

查看:97
本文介绍了有哪些执行调度的方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Web应用程序,客户端可以通过该应用程序将作业放入作业队列中.

现在,我想编写一个代码,该代码将驻留在服务器上并始终保持运行,并继续检查作业队列表中是否有任何待处理的作业,如果存在,则为每个作业启动一个线程并执行该线程工作.

我向各位专家提出的问题是,完成上述任务的可能方法是什么?

〜Amol

I have a web application through which client can put jobs in the job queue.

Now I want to write a code which will reside on the server and keep on running all the time and keep on checking whether there is any pending job in the job queue table, if it is there then start a thread for each job and perform that job.

My question to you all experts is that, what are possible ways to do above task?

~Amol

推荐答案

您可以创建计划任务.在这里 http://publib.boulder看. ibm.com/tividd/td/BSM/SC32-9084-00/en_US/HTML/bsmd62.htm [
You can create a scheduled task. Have a look here http://publib.boulder.ibm.com/tividd/td/BSM/SC32-9084-00/en_US/HTML/bsmd62.htm[^]

Good luck!


编写一个Windows服务,该服务可以从数据库中获取作业信息,然后按照指定的时间表运行作业.当然,您没有描述职位"的性质,因此不可能更具体地提出建议.
Write a Windows service that can get job info from the database, and then run the jobs on the specified schedules. Of course, you didn''t describe the nature of the "jobs", so it''s impossible to be more specific with suggestions.


这篇关于有哪些执行调度的方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆