scheduling

Java library class to handle scheduled execution of “callbacks”?

爱⌒轻易说出口 提交于 2019-12-04 22:47:29
问题 My program has a component - dubbed the Scheduler - that lets other components register points in time at which they want to be called back. This should work much like the Unix cron service, i. e. you tell the Scheduler "notify me at ten minutes past every full hour". I realize there are no real callbacks in Java. Here's my approach, is there a library which already does this stuff? Feel free to suggest improvements, too. Register call to Scheduler passes: a time specification containing hour

Listing available users on a certain date

为君一笑 提交于 2019-12-04 21:41:42
I'm looking at making a booking system and I need to display all the available users on a particular day/time. Thinking about it, I'm going to set up a table to keep note of when people AREN'T available, and assume that they are otherwise available. The structure I had in mind was to keep a note of the date_start of when they won't be available, and then the date_end. Now the problem arises when I'm trying to book a meeting, if I want to book something on Tuesday for 11:00 until 13:00 I need to fetch a list of those people that are available then, i.e. don't have any holidays booked at during

How do I keep a Perl script running on Unix after I log off?

流过昼夜 提交于 2019-12-04 20:08:49
I have a script that takes a lot of time to complete. Instead of waiting for it to finish, I'd rather just log out and retrieve its output later on. I've tried; at -m -t 03030205 -f /path/to/./thescript.pl nohup /path/to/./thescript.pl & And I have also verified that the processes actually exist with ps and at -l depending on which scheduling syntax i used. Both these processes die when I exit out of the shell. Is there a way to keep a script from terminating when I close the connection? We have crons here and they are set up and are working properly, but I would like to use at or nohup for

Outlook Automation from a web application to create appointments

天大地大妈咪最大 提交于 2019-12-04 19:37:00
Is it a standard practice to automate outlook from a web application using ActiveX technology? How does this compare with a web scheduler like telerik's RadScheduler + telerik's Exchange Provider to schedule an appointment from the web application itself? Thanks, Sendhil You will need to provide more details about what you are trying to accomplish rather then just stating automation of outlook within a web application. The reason I say this is because it really depends on what you are trying to do. If all you are trying to do is create an appointment then no you do not need activex. Here is

Why am I getting this error: dereferencing pointer to incomplete type

半城伤御伤魂 提交于 2019-12-04 18:42:54
I am working on a project for class with probably the WORST instruction ever where we have to implement a simple scheduler.. although C programming is not a prereq for the course, that is the language of the scheduler and I'm not necessarily a C programmer.. Anyhow, I am trying to debug this by printing out the task so I can trace it through the program, but I keep getting the following compile-time error: schedule.c:61:48: error: dereferencing pointer to incomplete type This is the task_struct definition: struct task_struct { struct thread_info *thread_info; int prio, static_prio, normal_prio

Is Work Stealing always the most appropriate user-level thread scheduling algorithm?

China☆狼群 提交于 2019-12-04 18:30:28
问题 I've been investigating different scheduling algorithms for a thread pool I am implementing. Due to the nature of the problem I am solving I can assume that the tasks being run in parallel are independent and do not spawn any new tasks. The tasks can be of varying sizes. I went immediately for the most popular scheduling algorithm "work stealing" using lock-free deques for the local job queues, and I am relatively happy with this approach. However I'm wondering whether there are any common

python long running daemon job processor

时光怂恿深爱的人放手 提交于 2019-12-04 16:47:34
I want to write a long running process (linux daemon) that serves two purposes: responds to REST web requests executes jobs which can be scheduled I originally had it working as a simple program that would run through runs and do the updates which I then cron’d, but now I have the added REST requirement, and would also like to change the frequency of some jobs, but not others (let’s say all jobs have different frequencies). I have 0 experience writing long running processes, especially ones that do things on their own, rather than responding to requests. My basic plan is to run the REST part

Looking for a scheduling/calendar component

时光毁灭记忆、已成空白 提交于 2019-12-04 16:35:35
I'm looking for a custom visual component for Delphi 7 which handles scheduling on a calendar. I'm not looking for an actual calendar, and I'm definitely not looking for some overhauled licensed component. I just want a simple visual component, with a trackbar-like list of items. For example, along the left, I could have employee names listed. Each of those records stretches across the control. To the right, the X axis represents time, and each employee (Y Axis) record could have multiple time periods (start..finish), which are not only displayed to the right of the employee, but also user can

Crontab - simple echo not running

好久不见. 提交于 2019-12-04 16:19:38
问题 I've got such situation: I want to schedule a job with crontab on a linux server. I'm not super-user, so I'm editing (with crontab -l, editor vim) only my crontab file. For testing, I put there: * * * * * echo asdf And the job is not running. Is the restart of the server needed? Or maybe some administrator move? 回答1: May be it is, cron jobs will run in their own shell. So you can't expect to see asdf on your console. What you should try is * * * * * echo asdf > somefile_in_your_home_directory

How is a warp formed and handled by the hardware warp scheduler?

半世苍凉 提交于 2019-12-04 15:59:20
问题 My questions are about warps and scheduling. I'm using NVIDIA Fermi terminology here. My observations are below, are they correct? A. Threads in the same warp execute the same instruction. Each warp includes 32 threads. According to the Fermi Whitepaper: "Fermi’s dual warp scheduler selects two warps, and issues one instruction from each warp to a group of sixteen cores, sixteen load/store units, or four SFUs. " From here, I think a warp(32 threads) is scheduled twice since 16 cores out of 32