scheduling

How can I store and query schedule data?

I'd like to allow my users to setup a schedule for their events. It could be a single day, or for convenience I'd like to allow them to specify a reoccurring event (similar to an Outlook appointment). For the single event it seems pretty easy (pseudo-code): Just have a DateOfEvent column that has the date on it. To grab future events:...

Can a shared ready queue limit the scalability of a multiprocessor system?

Can a shared ready queue limit the scalability of a multiprocessor system? ...

How to use Quartz with EJB3 ?

Hello everyone. I want to be able to : define different jobs and triggers. modify the expirations dates and intervals on demand pause or cancel an execution (trigger) the jobs would be ejbs or call ejbs and i would want to manage everything from the website (the user will have to define the executions) So i looked at the timerservi...

How to know when a schedule() call is returning because of a signal?

In a device driver for some PCI hardware, I have an ioctl call that waits for an incoming interrupt on the PCI bus. Using wait_queue_head_t, I put the task to sleep by calling schedule(). Then, the irq_handler function wakes up this task when the interrupt is raised on the PCI bus. Everything seems to work correctly. My question is how...

Grails Quartz Job has no Hibernate session after upgrade, causing LazyInitializationException

I've upgraded a Grails 1.0.4 application to 1.1.1. After upgrading, I'm repeatedly getting Exceptions when executing my Quartz jobs (using Quartz plugin 0.4.1). The plugin is used to manually schedule jobs using Simple and Cron Triggers via a service (paraphrased code below): class SchedulerService implements InitializingBean { stat...

How to implement time event scheduler in python?

In python how to implement a thread which runs in the background (may be when the module loads) and calls the function every minute Monday to Friday 10 AM to 3 PM. For example the function should be called at: 10:01 AM 10:02 AM 10:03 AM . . 2:59 PM Any pointers? Environment: Django Thanks ...

Displaying Scheduled Events

I had this problem some years ago and back then I implemented a "different logic" in order to deliver the project but the doubt remains in my mind and hopefully with your help I'll be able to understand it now. Suppose I have some scheduled events on my database that may or may not spawn over several days: id event start ...

How to set Quartz.net worker thread name?

How can I set name of the worker thread in Quartz.net? [2009-12-15 08:56:25] [DefaultQuartzScheduler_Worker-1] INFO I wanted to see some meaningful information in the logs. I tried using JobDetail constructor, but looks like I am wrong. var job = new JobDetail("n1", null, typeof (MyJob)); Thanks, Vadi ...

Linux group scheduling for user not being applied to setuid-ed process

On the 2.6.28-11 Linux kernel, I am using setpriority to bias the amount of cpu time different user processes receive. User 1 is to receive double the CPU power of user 2. Using Linux's setpriority, I have assigned user 2 a lower priority (higher in terms of nice values). When I run the exact same program via the shell with the computer ...

Quartz Java resuming a job excecutes it many times.

For my application i create jobs and schedule them with CronTriggers. Each job has only one trigger and both the job name and the trigger names are the same. No jobs share a trigger. Now when i create a cron trigger like this "0/1 * * * * ?" which instructs the job to execute every second, it works just fine. The problem rises when i f...

what is the scheduling algorithm followed in mac os ?

what is the scheduling algorithm followed in mac os ? where can i find the relevant document. did a google search but didnt get any useful resource .. Thanks ...

Scheduling With Deadlines

Hi I want to implement a simple code for scheduling with deadlines by c# I have java pesudo code but I don't know how to check the feasible sequence is anybody to help me ...

increment the priority of a thread in Linux

I am reading data from a HID device using hiddev , there is a dedicated thread to read off of it, but it seems that thread is dropping some packets. I can see the packets in the kernel buffers(usbmon) but some of them don't reach user space. The reads inside the reading thread mostly finish on time(~4ms). I think the process is not getti...

Is it safe to use java.util.Timer inside servlet ?

Hi all, for many reasons, it is not good practice to use threads inside servlet. java.util.Timer seems like wrapper to threads. so also it is not safe to use it ? if yes, what is the safest way to schedule task in servlet ? thanks,,, ...

When is the interval parameter of dbms_job.submit reevaluated?

In Oracle we can submit a job to the job queue using the following code: DECLARE X NUMBER; BEGIN SYS.DBMS_JOB.SUBMIT ( job => X, what => 'SYSTEM.INSERTDATE;', next_date => SYSDATE, interval => 'SYSDATE+0.1/(24*60)' ); COMMIT; END; Now my question is when the *interval* paramete...

Recommended method for loading a URL via a scheduled task on Windows

I have a webpage hosted on a Windows box that I need to assure gets loaded at least once/day. My current plan is to create a scheduled task that opens Internet Explorer and hits the URL: "C:\Program Files\Internet Explorer\iexplore.exe" myurl.com/script_to_run_daily.aspx This was simple to setup and works fine, but it strikes me as a ...

In Windows Vista, what IRQL is the thread scheduler run at?

In Vista, what IRQL is the thread scheduler run at? ...

What is the best way to delay thread starts until a specific time?

I am building an application which needs to call a certain API at specific times. I would like to set execution times for each of the calls, and have my execute function be called automatically when each call needs to execute. What's the best way to do this? I have thought about creating a new Timer for each new call that needs to be ex...

Java about 100 parallel threads, memory management

Hey folks, I am writing an optimazation algorithm which creates about 100 threads. Currently, I start them all at one time (for-loop) and after that I tell every thread that it should join(). My problem is now that each thread uses to much memory so the heap space exception won't take long. I want some kind of scheduling but don't know...

round robin scheduling java iterators

I have a list of hosts in an array which represnt the servers available to do a particular job. Currently I simply iterate thru the list looking and establish comms with a host to check its not busy. If not I will send a job to it. This approach tends to mean that the first host in the list tends to get hot constanly with the load not ba...