scheduling

How to model simple scheduling problem using MS Solver Foundation?

I have the following simple problem that I'd like to use to experiment with MS Solver Foundation: I have a schedule where I need to have 2 workers per day for 30 days. I need to honor the following constraints: No people should work two days in a row. Unless a special exception is applied, people should only work once per week. Some ...

How to run processes piped with bash on multiple cores?

I have a simple bash script that pipes output of one process to another. Namely:. dostuff | filterstuff It happens that on my Linux system (openSUSE if it matters, kernel 2.6.27) these both processes run on a single core. However, running different processes on different cores is a default policy that doesn't happen to trigger in th...

Recommendations - Scheduling software/components .Net

I'm starting a new back office scheduling app for a doctor's office. .Net 3.5. I'm trying to save time and money. Can anyone recommend a suite of tools (Infragistics, etc) that are best of breed for a scheduling application? More advanced than that, if anyone has a codebase they are willing to share or sell the base of, I would be in...

Multiprocessor Scheduling Algorithm

Hi, I'm searching for a Sequential implementation of multiprocessor scheduling algorithm, preferably implemented in c++, or c. Any suggestions are welcome. ...

Weighted, load-balancing resource scheduling algorithm

A software application that I'm working on needs to be able to assign tasks to a group of users based on how many tasks they presently have, where the users with the fewest tasks are the most likely to get the next task. However, the current task load should be treated as a weighting, rather than an absolute order definition. IOW, I need...

Creating threads within the cluster

Hi, I wish to know is there any way that I can create the threads on other nodes without starting the process on the nodes. For example :- lets say I have cluster of 5 nodes I am running an application on node1. Which creates 5 threads on I want the threads not to be created in the same system but across the cluster lets say 1 node 1 t...

Quartz.net repeat job at interval after job is completed

I am currently implementing Quartz.net in a simple application that should execute a piece of code every (for example) 5 seconds. Only now the code sometimes takes more than 5 seconds to complete. At first I had the problem that the code was executed while the same code was still running, I fixed this by using the IStateFulJob interface...

how to send schdule sms in j2me?

i want to know how to send an sms at chosen time using j2me?I know how to send sms but unable to do it at chosen time by user using date field? ...

when do we prefer Round robin over FCFS and vice-versa?

i know this depends on the design, but i was asked this question and no assumptions taken.. what should i answer and ...

Creating subscribtion with Reporting services 2005

Hi, I have created a dynamic subscribtion. All work well, but if I create the subscrbtion on any month say like July 09, and select that I get the report of previous month on monthly basis. Now In month of August I will receive the report for the data of July 09 which is correct but after that in September 09, I should Receive the repor...

checking an access file via java and mailing for a specific row

Hello I need to write a program that checks a access .mdb file and when a specific row is added (say the "name" field column of the newly added a row that contains a specific string, it should send an email to a specific address. For this I am planning to use "Jackcess" library for reading the mdb file and "Apache's commons-email libra...

running bat file using windows schedualer

Hi there i wanted to run a .bat file in windows task schedualer, so i opened it, added a new task, browsed to the bat file, and... nothing happened. so i changed the timing to see if it'll run, and it didn't. next i right-clicked on the task and chose "run"- it didn't run. the file itself is only one line, basicly backups a folder to a ...

In Linux, polling in a conscientious way

When you've got a tight loop polling the status of something, I'm not quite sure how to do the polling without getting in the way of other processes wanting to use the CPU. For instance, doing this: while (state == BUSY) state = check_state(); seems like a waste of resources. I would think the best way to do this would be: while (sta...

Resource scheduling application

I'm trying to implement an application that coordinates multiple users who are scheduling exclusive resources. The schedule data must maintain strong consistency over a network with a single master node. The scheduled resources could be anything from a conference room to a worker on a job site. We assume the conference room cannot be sc...

Worker/Timeslot permutation/constraint filtering algorithm

Hope you can help me out with this guys. It's not help with work -- it's for a charity of very hard working volunteers, who could really use a less confusing/annoying timetable system than what they currently have. If anyone knows of a good third-party app which (certainly) automate this, that would almost as good. Just... please don'...

Do atomic operations work the same across processes as they do across threads?

Obviously, atomic operations make sure that different threads don't clobber a value. But is this still true across processes, when using shared memory? Even if the processes happen to be scheduled by the OS to run on different cores? Or across different distinct CPUs? Edit: Also, if it's not safe, is it not safe even on an operating sys...

When are lock free data structures less performant than mutual exclusion (mutexes)?

I read somewhere (can't find the page anymore) that lock free data structures are more efficient "for certain workloads" which seems to imply that sometimes they're actually slower or the gain from them can be zero in some situations. Taking the ~100 cycle hit of a lock instruction to do an atomic op sounds plenty faster to me than going...

SQL Server Agent Job Timeout

I have just had a scheduled SQL Server job run for longer than normal, and I could really have done with having set a timeout to stop it after a certain length of time. I might be being a bit blind on this, but I can't seem to find a way of setting a timeout for a job. Does anyone know the way to do it? Thanks ...

Scheduling algorithm/problem

hey Stackoverflowians, I'm bored, and this problem just haunted me again. Back at university, I used to always wonder how they schedule exams. The ability to schedule 10k student to do exams in 2 weeks and guarantee that no student will have an exam in two consecutive periods. I'm assuming some form of heuristics be applied. I'm bored ...

Typical scheduling time quantum in modern operating systems

What are typical durations of an operating system process/thread scheduling quantum? I realize that this can vary with the scheduling algorithm, priorities, workloads, hardware, etc., so I'm expecting answers to come with conditions/assumptions, or to be ballpark. I can find examples that seem to suggest something on the order of 16 mil...