scheduling

Implementing Scheduling Algorithms with Java

has anyone of you ever dealt with job scheduling problems with Java? I have to work on a resource-constrained project scheduling problem and want to ask for some practical tips. Are there any good libs available for implementing algorithms? What are efficient data structures I should use? edit: It seems like i have not explained it rig...

On a Blackberry, How do you schedule your app to come on at a specific time?

The context for my question is that of an alarm application but I would like to know in the general case. How do you schedule your application to turn on at a point in time in the future? For instance, if I set an alarm to play a noise tomorrow at 8:00 am how do I make this happen if the device has closed my app? *editted to correct spe...

Time table modeling in relational db

I know that it has been told almost anything related to time table modeling in RDBS, but i can not find any well written documentation about available techniques to store time tables in DB. My case: I have table witch holds available places, and table with actual classes. Each place has it's own unique schedule Each class can be sched...

Scheduling Algorithm for Maintining Two Dimensional Constraint

I have been tasked to do a scheduling program in my company. Basically given N employee you should schedule them shift for the month. I tried to do this via brute force and ordered priority of constraint. However, I am having problem when trying to maintain vertical and horizontal constraints. Vertical constraints, all person should hav...

Silverlight schedule an event at a specific time

I'm trying to find a way to trigger a Silverlight event to occur at a specific time of the day. The app will be run out of browser and will be running all the time. I have found some methods that use a timer to fire an event every minute and then check if it is the correct time to do something, but that sounds messy. Is there some way ...

Java: waiting on synchronized block, who goes first?

This question is inspired by this other question. If multiple threads are waiting on a synchronized block, and the lock becomes available, who goes first? Is it by thread priority (and then first-come-first-served)? And do the same rules apply for notify (with multiple waiting threads)? ...

Compare Round Robin and Multilevel Feedback Queue in terms of waiting time, response time, turnaround time

I want to make a comparison between RR and MLFQ in terms of waiting time, response time, turnaround time in 3 cases: a) More CPU-bounded jobs than I/O jobs b) More I/O-bounded jobs than CPU bounded jobs c) When only a few jobs need to schedule. Could you help me to clarify or give me some sources for reference. Thanks ...

Batch Scheduling algorithm with variable slot length, simplest possible

I am trying to implement an Oracle pl/sql script to batch insert appointments into a database. The application is for managing appointments for operators/offices as follow: There are X offices, each having Y number of operators. (Ex: Office #1 has 4 Operators, #2 has 6, etc) Each office has difference opening hours, defined in ...

Simple execution sequence for real time systems drawn in Java

Hello, I need to draw some execution sequences for some real time systems scheduled using rate monotonic algorithm. The drawing has to be done using Java and it has to be very basic. Do you a very simple way to do this drawing? Simpler than Graphics2D? Thanks a lot! The diagram I want to be as simple or even simpler as this one: ...

How can I have one thread send an SQL query, and another wait for the results?

I have a program that does a limited form of multithreading. It is written in Delphi, and uses libmysql.dll (the C API) to access a MySQL server. The program must process a long list of records, taking ~0.1s per record. Think of it as one big loop. All database access is done by worker threads which either prefetch the next records o...

Alert on a scheduled end date for a document in SharePoint 2010

When I set a scheduled end date on a document in SharePoint 2010, I want to to alert users when the item reaches this date. Is this possible in SharePoint 2010 without custom code? ...

cron-like recurring task scheduler design

Say you want to schedule recurring tasks, such as: Send email every wednesday at 10am Create summary on the first day of every month And you want to do this for a reasonable number of users in a web app - ie. 100k users each user can decide what they want scheduled when. And you want to ensure that the scheduled items run, even if t...

Job scheduling service library for flex (similar to quartz in java)

Hi everyone, I am searching for a flex library for job scheduling. I know the Timer API, but this is not exactly what I am searching for. Here is (one of) my usecase for my AIR application: Try to ping to website xyz every 15 minutes Every first monday of a month try connect to website abcdefg .. So I am searching for a library like...

How to execute IronPython script in separate thread and then suspend it?

Lets assume I have such code for testing. public class SimpleScheduler { public Script Script { get; set; } private Thread _worker; public void Schedule() { this._worker = new Thread(this.Script.Execute); this._worker.Start(); } public void Sleep() { //? } } SimpleScheduler ju...

Highly scalable db schema for recurring events

Which is the best way to design a db schema in which store hundreds of thousand events, with recurrencies, and that will support milions of query asking which events will occur in a range of dates? I mean, designing the tables to describe the model should be not difficult, but doing that in such a way that the huge amount of data can be...

java timer task schedule

From reading on Stack Overflow I've seen that many of you don't recommend using Timer Task. Hmmm... but I already implemented this: I have this code: detectionHandlerTimer.schedule(myTimerTask, 60 * 1000, 60 * 1000); The thing is that work of myTimerTask lasts some time. I would like this behavior: wait 60 sec. do task for some ti...