problem about scheduling-Collection of common programming errors


  • APC
    oracle oracle10g jobs scheduling
    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′,’HH24:MI MM/DD/YY’),comments => ‘Schedule for periodic loads’,schedule_name => ‘UserName.DOLOADS’); END;Waiting for your valuable suggestions..

  • Gilles
    linux scheduling cgroups priority
    I would like to understand cgroups better and would like to understand the use-cases for applying cgroups.Are cgroups a good way for prioritizing different applications (i.e, giving higher priority to specific types of applications like web servers)?

  • heximal
    crontab scheduling
    I’ve got some strange behavior of one rule working unexpected.*/40 * * * * myshellcommand hereI though it would run each 40 minutes, e.g.00.00 00.40 01.20 02.00 etcbut instead it runs00.00 00.40 01.00 01.40 02.00 etc.Does anyone have an idea what can be wrong?

  • Kate Paulk
    team metrics scheduling
    The tester team where I work has a demanding customer base (we do business-to-business software, some of it ultimately public-facing, some business-facing), an application that’s gone beyond anyone’s ability to test all the configurations, much less how all those config flags affect all the features, major releases that usually include at least 3 major features and a raft of minor features as well as dozens of bug fixes. No-one in the company has any idea how to tell if a release is too full – w

  • user246
    scheduling
    Is it more efficient to start testing during project development or before deployment?

  • Craig Schwarze
    scheduling software-schedules
    Possible Duplicate:Why are software schedules so hard to define? I often need to explain to senior management why software estimation is so hard, and why our preliminary estimates are often so far out. I suspect some want to know why it is not mathematically precise engineering, like building a bridge.You can help me by listing a few dot points relevant to this subject. Many thanks!

  • Mike Murphy
    asp.net session request scheduling
    I know that a properly implemented SessionStateStoreProvider maintains an exclusive lock on session data for the duration of a request. However, considering that multiple requests could arrive simultaneously (e.g. via IFRAMEs) all but one would be able to make forward progress. All the other requests would block for a bit and reduce the number of worker threads available during that time.It seems if ASP.NET “peeked” at the session IDs on the requests early on, it could avoid running requests sim

  • Jonathan Leffler
    c linux scheduling
    I would like to know if a program / a thread was dispatched / scheduled in C under Linux and if possible how often. The reason is that I’m measuring the runtime of a loop and want to prevent false results.This is a minimal example:#include <stdio.h>int times_dispatched() {// how to check?return 0; }int main() {int i, dummy = 0;for(i=0; i<10000000; i++) {dummy++;}printf(“counted to %d; program was dispatched %d times\n”, dummy, times_dispatched()); }

  • osgx
    linux linux-kernel scheduling
    From the http://lkml.indiana.edu/hypermail/linux/kernel/0103.1/0030.html I learn about a new type of mutexes in linux, an adaptive_np one:The PTHRED_MUTEX_ADAPTIVE_NP is a newmutex that is intended for high throughput at the sacrifice offairness and even CPU cycles. This mutex does not transfer ownership to awaiting thread, but rather allows forcompetition. Also, over an SMP kernel,the lock operation uses spinning toretry the lock to avoid the cost ofimmediate descheduling.There is mentioned

  • Arpit

  • atomh33ls
    erlang scheduling
    I want to use the process_flag(priority, Level) to set the priority of a process. I am a little confused as to where it should go in my code and can’t seem to find an example.The two options that I can see are:(1) Set the flag before spawning the process:process_flag(priority, max), register(myprocess, spawn(fun() -> myprocess() end)),(2) Set the flag within the function after it has been spawned:myprocess() -> process_flag(priority, max), %do stuffAlso, if option 1 is correct, do I need t

  • zeion
    algorithm big-o scheduling time-complexity big-theta
    So I was reading my notes and I don’t really get this part:Define f, s as the starting and finishing time of an interval. Sort all intervals by finish time. So suppose we have a set of intervals I_1, …, I_n and define pred[i] = the largest index j such that f_j <= s_i. (So essentially the next closest interval before i that does not overlap i).Now we want to solve all pred[i] for all I_i in n. Why is the runtime of this theta(n log n)? I would think that, in the worst case, all of I_1, …,

  • Robert Harvey
    c++ multithreading scheduling task-queue job-scheduling
    I am trying to schedule tasks in multi threaded systems. my idea is to have a local queue per thread, each thread will fetch the job from its local queue. But when the thread reaches some threshold, it should not fetch the job, rather it should transfer the job to a thread which is below the threshold level. My doubt is how to set the threshold for the threads.

  • Anthon
    process c scheduling
    For a project at my university I am researching ways to trace, log and manipulate the process scheduling of certain processes. I would like to launch an number of applications, everyone in a single process. At first I would like to trace and log their scheduled execution. But at the next step I would like to manipulate their scheduled execution in order to prefer a single process in it’s first $n execution.Does someone know an existing approach to realize this (for instance a modified sched.h)?

  • Dipanjan Sarkar
    linux ubuntu operating-systems scheduling
    I want to change specific parameters of the linux CFS scheduler like the virtual runtime of particular processes dynamically ( vruntime parameter in the sched_entity ). Is there any definite method to do this? I have already looked at commands like nice() and it won’t serve the purpose.

  • j0k
    linux scheduling hp-ux
    On Linux and HPUX I see that the default timeslice duration, as observed by measuring the average sleep time for a “too small” duration sleep (100-1000 microseconds), has changed from about 10 and 20 milliseconds respectively, to about 4 and 10 milliseconds respectively.On Linux, is there a /proc mechanism to tell at runtime what this duration is? How about hpux or any other platform? Other platforms of specific interest for my purposes are: Windows, AIX, Solaris, and MacOSX.I expect that this

  • 909 Niklas
    operating-systems scheduling embedded-systems
    AFAIK the lowest priority has the highest number in scheduling and in my system all priorities must be different. But isn’t other policies thinkable? For instance, how about a policy where priorities are not numbers but say that a task’s priority would be defined only in term of another task’s priority, and that other task would be the closest in priority to the task whose priority we are setting. Then we would never use actual numbers for priorities, but we would keep a data structure sorting t

  • tuban
    c++ linux linux-kernel scheduling
    I am facing problem with signal handler handling SIGABRT signal.While handling SIGABRT, signal handler not able to schedule out. So the other threads are not able to run after someone receives a SIGABRT. This causes improper crash of the program.However, while handling SIGSEGV, it is properly scheduled out and other threads able to run.Upon receiving signal, I post some recovery mechanism to another thread. For sigsegv it is getting executed, for SIGABRT it is not as the thread is not getting sc

  • Hatim
    c# windows-services scheduling
    I have a database job that runs occasionally at night and I need a windows service to poll the database regularly to do some more work after the SQL job is done. I am a looking for a solid example to write a scheduler that can fail gracefully without crashing the service.

  • neubert
    java multithreading scheduling
    BlockquoteI have a Java program with functionality that needs to be run periodically. However, I would like to be able to close the wrapper program (if you’re a UNIX person, think Ctrl+C in the terminal window or SIGTERM) without any risk of interrupting the main program processes or threads that the wrapper would start.At first I was thinking I should have my main program sleep for a certain interval after each round of processing. Then I figured that if the program needs to be closed and is ma

  • James
    java design-patterns scheduled-tasks scheduling
    I’ve done a chunk of work to retrieve some data from a web service but now have the problem of scheduling requests to it and I’m not really sure where to begin.I listen to a jms queue for events and upon receipt of an event I need to make a request to the web service after a duration. The duration varies depending on the event attributes. If the web service returns false I need to continue to schedule requests until it returns true.I was thinking of creating a lookup request on a queue upon rece

  • Gilles
    linux boot cron scheduling
    Is there any way to make/run a bash script on reboot (like in Debian/Ubuntu for instance, since thats what my 2 boxes at home have)Also, any recommended guides for doing cron jobs? I’m completely new to them (but they will be of great use)

  • Jan Helge
    operating-systems scheduling
    If I’ve understood this correctly, the Round-Robin scheduler maintains a list of processes, where each process has one entry. But what happens if the same process appears twice? Does it crash or reports an error, or just gives it more CPU time?

  • amiregelz
    cpu crash scheduling
    When a program doesn’t respond, on a low level (maybe even down to cpu instructions), what exactly happens? Does the cpu scheduler fail to get a response from the cpu on whether the program executed correctly?

  • Jon Hopkins
    agile scheduling
    This came out of some of the answers and comments on another question (this one).I’ve worked primarily with waterfall projects and while I’ve worked on ad-hoc projects that have taken on agile behaviours and have read a fair bit about agile, I’d say I’ve never worked on a “proper” agile project.My question is does the concept of “late” have any meaning in agile, if so then what?My reasoning is that with agile you have no upfront plan and you have no detailed requirements at the outset. You may

  • user1245262
    python scheduled-tasks scheduling
    I’m trying to learn how to use Python’s apscheduler package, but periodically, it throws the following error:No handlers could be found for logger “apscheduler.scheduler”This message seems to be associated with errors in the scheduled jobs, for example, using jobTester as the scheduled job, the following code, which uses an undefined variable (nameStr0) in jobTester gives the above error message:from apscheduler.scheduler import Scheduler from apscheduler.jobstores.shelve_store import ShelveJobS

  • alexb
    java windows multithreading scheduling
    I’m testing out a multithreaded Java program. For debugging, I made the threads print out statements. The order of the print outs goes like this:Thread message 1 Thread message 2 Thread message 1 Thread message 2The problem is that on a certain machine it changes to:Thread message 1 Thread message 1 Thread message 2 Thread message 2The machine has the same version of Java as all the other machines I tested. At first I thought it was a Windows 8 issues, as the previous ones had Windows 7, but I t

  • ed1t
    ruby ruby-on-rails-3 scheduled-tasks scheduling resque
    I’m trying to test out scheduling jobs in future using rails 3 and resque scheduler:Following is the code I’m using but I’m getting NoMethodError set_schedule. Resque.set_schedule(“1”, {:cron => “30 6 * * 1”,:class => “Notify”,:queue => “username”,:message => ‘notification message’ })I tried using a simple enqueue Resque.enqueue(Notify, params[:message]) and this works fine.UPDATE:Following is the error I’m getting:undefined method `set_schedule’ for Resque Client connected to

  • WhiteKnight
    scheduled-tasks scheduling quartz-scheduler
    I have a building block which sets up a Quartz job to send out emails every morning. The job is fired three times every morning instead of once. We have a hosted instance of Blackboard, which I am told runs on three virtual servers. I am guessing this is what is causing the problem, as the building block was previously working fine on a single server installation.Does anyone have Quartz experience, or could suggest how one might prevent the job from firing multiple times?Thanks,

Web site is in building