scheduling

pthread scheduling problems.

I have two threads in a producer-consumer pattern. Code works, but then the consumer thread will get starved, and then the producer thread will get starved. When working, program outputs: Send Data...semValue = 1 Recv Data...semValue = 0 Send Data...semValue = 1 Recv Data...semValue = 0 Send Data...semValue = 1 Recv Data...semValue = 0...

Best way to store availablility of employee

I am looking to add a component to our system (and build out the database tables) that will allow a user to set their availability with the following characteristics: Hours of the day (and day of the week) generally available Days during the month generally available Days specifically not available - could be a day of the week, recurri...

Scheduling 12 Teams Over 10 weeks; 20 Game Schedule

How do I schedule 12 teams, each team plays 9 opponents twice (home & away) and 2 opponents once (home or away).Each school has a travel partner (if c and d are travel partners, A would play C on Sat and A would play D on Sun). I'd like the 20-game (per team) schedule to be played over 10 weeks. ...

Implement Task Recurrence Pattern in .NET like Outlook?

Hi,I have to implement Scheduler like outlook in my .NET application.I have already started working on it but I can't implement Recurrence Pattern.please suggest me that how could i achieve this functionality. how to save task with Recurrence in database? I found this RadScheduler for ASP.NET AJAX but unfortunately this controller is com...

Task scheduling frameworks - not thread scheduling!

I'm working on a Java application which should allow users to optimize their daily schedule. For that, I need a framework that helps calculate optimal times for "tasks" taking note of: Required resources and resource usage limits Dependencies between tasks (can do with only F->S relations though) Earliest and latest start-finish times,...

Opinions and Methods to send Time Based emails

I have a website and would like to send out emails regularly one or twice a week. One method I know of sending a email say every thursday at 5:30pm would be to have a windows service start up at the correct time and open a webpage of my website. This page would be a hidden page which then would make all the emails and send them out! T...

Connecting Java with Google Calendar

Hey guys, I'm relatively new to Java, so I have little to no idea where to even start with this one. I'm writing a scheduling application using Java and google calendars. On my google account I have a bunch of calendars with people's schedules on them. I need to access these calendars through java and insert the person's free / busy i...

Generating potential schedules for college students.

Hello, Here is my problem: I am designing an application that will allow students to select the classes they want to take for the semester and create potential schedule layouts for them. Each class typically has several possible sections that occur at different times. So I am looking for a good data structure to use in order to develo...

reducing the time of scheduled job

Hi , I have written this scheduled job for the ORACLE DB which is run every second. Now in my schedule program what I want to do is to set the frequency to every 5 millisecond. BEGIN sys.dbms_scheduler.create_schedule( repeat_interval =>'FREQ=SECONDLY;INTERVAL=1', start_date => to_date('15:19 09/16/10...

Can the Quartz scheduler be used for simulation?

I'm looking at using the Quartz scheduler, but I need to be able to use it both in 'live' mode, using the real clock, and 'simulation' mode where I control the simulated clock. Is this possible with Quartz? I couldn't see anything in the docs that suggested it was. Thanks, Jon ...

Scheduling a time in the future to send an email in Java or Python

I'm writing an application and I'd like it to somehow schedule an email to be sent at a later date (likely an hour after it is run). The programming language will be Python or Java. Any open-source tools available for that purpose? EDIT: I forgot to mention it's to be run after a test run, so the application will already be down and I ...

scheduling Jmeter distributed testing

I am using JMeter's distributed testing feature which works fine. However, when I schedule this distributed run, it just runs immediately and disregards schedules. It happens only for distributed testing. Any idea? ...

Worker Scheduling Algorithm

The Problem Here's the essence of the problem I want to solve. We have workers taking care of children in a nursery for set times during the weekend. There's 16 different slots to fill in one weekend. So for a 4-week month there's 64 slots to fill. We have at max 30 nursery workers (though we need much more. anybody like kids?). EDIT: ...

Is there a job scheduler library for node.js?

Is there some cron like library that would let me schedule some function to be ran at certain time (15:30 for example, not x hours from now etc)? If there isn't this kind of library how this should be implemented? Should I just set callback to be called every second and check the time and start jobs scheduled for the time or what? ...

Why is there a switch in the CPU core usage when I run this C code?

When I ran this code using gcc, $ cat eatup.c #include<stdio.h> #include<stdlib.h> int main() { int i = 0; while(1) { i++; } } $ the CPU graph went like this : I am not sure why there is a cross in the CPU core usage. I started the run at the rise to the left of the 40 mark, then initially core2 usage rose to...

Windows Workflow Foundation - schedule activities to run at certain times

I'm evaluating whether WF would be a good fit for a design I'm working on. I'm in that chicken-and-egg conundrum where I don't want to invest too much time in learning all the details until I have a good idea that it's going to be suitable. The one thing that I can't seem to find much on that could be significant is scheduling. And by t...

Schedule Task : 6 months from now

Hi guys, I'm tryin' to find a way (from a batch file) that I can use to create a scheduled task that will execute 6 months from now. I've looked all over the net, and I'll I've come across is AT and SCHTASKS that will schedule the task monthly .. I'm looking for a solution that will execute this task every 6 months. I know this will r...

Scheduling in my web apps

Hi there, i'm writing a web app in C# in which i need to implement a scheduling function which has to be fired every day at the same time, i already used quartz to do something similar in an JEE application and it works perfectly; reading some post and docs about using quartz.net gave me some doubts how to implement it. How can i inte...

Scheduling with variable Resources

Hello, (First of all, sorry for my english, it's not my first language) I have a list of tasks/jobs, each task must start after a specific start time, needs to run for a certain time and has to be finished after a certain end time. I can dynamically add and remove workers, so it is possible to execute 2 or more tasks at the same time...

Why does ScheduledExecutorService not expose methods to run at a particular time

If I want to schedule at recurring task that is aligned with a specific date it would make sense to use ScheduledExecutorService. But it has no method to pass in the firstRunDate + subsequent delay to a scheduleAtFixedRate method. I know I can back out the initial delay myself but is there any reason this isn't provided by the API? Es...