Task priority and background properties...

Is it possible to set a task priority, as we can with System.Threading.Threads?
What about the background concept of a thread (IsBackground property)?

Yesterday I talked to a collegue that has a specific use for task priorities.
He has a service that perform tasks that come in at a fairly high rate. He lets the ThreadPool to manage when things get executed. This worked fine in the beginning.
Then users started complaining that the system was too slow. The problem is that user submitted work is added to the ThreadPool along with "system" tasks. He needed a way to indicate the user submitted work takes priority over all other tasks.
His solution was to fix the max thread count of the pool to 1 less than the number of processors and to process user tasks on a seperate thread. His thinking is that user tasks are guaranteed to have a waiting processor to do the work.
Although this solved the problem most of the time it did create two new problems: 1. all other tasks have fewer threads to do thier work...so they are slower. 2. user submitted tasks are essentially convoyed to a single thread. they block each other.
I think his solution is a bit wacky. The question is: can Parallel Extentions deal with this better?

Similar Messages

  • LabView task priority and concurrent tasks on Win2K

    When doing some number crunching with LabVIEW, my program is
    using all CPU time on my Win2K desktop. Even when I have some
    other programs running in the background (like setiathome...)
    with the same taskpriority as LabVIEW, LabVIEW is using all the
    CPU time for its calculations. Normally it should share the
    CPU with all other tasks of the same priority, as I understand
    the task scheduling of Windows. Why doesn't work LabVIEW this way?

    > When doing some number crunching with LabVIEW, my program is
    > using all CPU time on my Win2K desktop. Even when I have some
    > other programs running in the background (like setiathome...)
    > with the same taskpriority as LabVIEW, LabVIEW is using all the
    > CPU time for its calculations. Normally it should share the
    > CPU with all other tasks of the same priority, as I understand
    > the task scheduling of Windows. Why doesn't work LabVIEW this way?
    LV does work that way. By default the execution takes place in threads
    that are the same priority as the LV process. If the LV process is
    lowered in priority, so are its threads, and vice versa. It is possible
    to set LV threads to be a few priority marks above or below this, so one
    thing to check is to see wh
    at the priority of the VI is set to.
    Also, Seti may always decide to execute in threads that are a lower
    priority than its process. It is possible to set process priorities to
    try and better balance these out, if that is your goal.
    Greg McKaskle

  • Exchange Messages Between Foreground and Background Tasks

    I'm working on an Application where I use background task for handling Bluetooth communication. For that, I'm trying to exchange messages between foreground and background tasks when the Bluetooth device sends
    something and want to notify the foreground about it. Similarly, I want the foreground to send messages to background when the user activates something. I've started doing that using event handlers but it is not reliably working. Looks like the problem is
    coming from the synchronization between these two tasks. I found the class BackgroundMediaPlayer which does what I really want , except controlling the media player. What are the options of doings that?

    Hi Rob,
    Thank you for your reply. So in this case, I guess each process shall keep reading the file and see if there are commands to be processed. Is there a way to raise an event when the content of the file get changed? Are there existing file handling classes
    that support this?

  • Difference between batch job and Background Job

    Hi Forum,
    Can anyone distinguish between batch job and background job for me please ?
    SK

    Hi,
    Batch Job:
    A batch job is a process that runs in the background, often deferred and unattended, to process data in groups (batch) rather than by individual transactions (e.g. a monthly phone bill rather than a bill for each individual phone call). A batch job executes a sequence of programs and technical instructions that are stored in a command file. Progress and error messages are output to a log file allowing users to determine, at any time, if the batch job completed successfully or identify the cause of the problem. Because batch jobs run in the background they are less visible to the end user.
    In a business-computing context, batch job scheduling implies the automatic execution of background tasks (batch jobs) at pre-determined points in time (e.g. every day at 8pm, midday on Wednesday).
    3 types of batch job scheduling can be distinguished: native, basic and advanced batch job scheduling.
    Most operating systems and some business solutions software come equipped with native batch job scheduling tools that provide a limited service (e.g. Windows Scheduled Tasks, UNIX crontab, SAP CCMS) locally to each installation. However, business processes may span multiple platforms, applications, countries and companies. Their complexity may require much more functional power as provided by basic batch job scheduling including national and regional variations in the working calendar, sequence variations according to the day of the month, triggering of jobs by the successful completion of preceding jobs, elimination of gaps and reduced batch windows. Major benefits of basic batch job scheduling are enhanced productivity, operations reliability and cost-reduction. For e-business applications that require real-time processing, the distance between interactive individual processing and batch processing tends to decrease. Advanced batch job scheduling can handle these advanced requirements: event-driven scheduling for a real-time synchronization with interactive processing, just-in-time scheduling to run operations as soon as possible, cross-platform and cross application services for the entire IT landscape, real-time overall monitoring to track background operations for all applications on all servers.
    The standard benefits of batch job scheduling are drastically amplified when job schedulers can handle the end-to-end automation and monitoring requirements for all background operations.
    To schedule a back ground job follow the below steps:
    1. Use Transaction SM36.
    2. Assign a job name.
    3. Set the job’s priority, or “Job Class”:
    High --- Class A
    Medium --- Class B
    Low ---Class C
    4. Here you can specify,when the job is to start by choosing Start Condition. If you want the job to repeat, or be periodic, check the box at the bottom.
    Else click on the immediate and save this.
    5. Now,define the job’s steps by choosing Step.
    Here you need to give the ABAP program that has been used and the name of the variant thats being used.
    6. Save the fully defined job to submit it to the background processing system.(You need to click save button on the main screen i.e SM36)
    7. When you need to modify, reschedule, or otherwise manipulate a job after you've scheduled it the first time, you'll manage jobs from the Job Overview.
    8. Release the job so that it can run.
    The job, even those scheduled for immediate processing, can not run without first being released.So,do remember to release.
    Hope this helps you.
    Regards,
    Rakesh

  • I am trying to configure my SCXI-1540 card for excitation voltage and frequency using MAX - but it is not giving me that option when I click on the card and then properties​, am I looking in the wrong place?

    I am trying to configure my SCXI-1540 w/1315 card for excitation voltage and frequency using MAX - but it is not giving me that option when I click on the card and then properties, am I looking in the wrong place?
    I have LabVIEW Express 7.0 Professional - SCXI-1000 Chassiss - along with SCXI-1112, and SCXI 1520/1314 - cable to the PCI-6052E is attached to the 1520 card.
    MAX says it recognizes all the cards in the chassiss.

    Jeremy, Thanks for the reply.
    I tried to set up the system as DAQmx.
    I had MAX auto-detect the set-up - and it recognized all the cards - but did not select the 1315 accessory on the 1540 card - I had to do that manually - but in the configuration section I would select the accessory and it would deselect itself. I had to get out of the set-up and then right click on the 1540 card and click on the "Accessories" tab and select the 1315 terminal block that way.
    It didn't seem right that the system should behave that way, but I pressed onward.
    I then tried to create a new DAQmx Task
    When I create new DAQmx task and then click on Analog Input no "Position" Tab appears for me to select, all I get are:
    Analog>>Voltage
    Analog>>Temperature
    Ana
    log>>Strain
    Analog>>Current
    Analog>>Resistance
    Analog>>Frequency
    Analog>>Custom Voltage with Excitation
    Do you think there might be something wrong with either my hardware or perhaps my configuration that is not allowing it to recognize the 1540/1315 in DAQmx?
    I had included the system report of what programs I am using, etc. as attached file nireport.txt
    After the DAQmx did not work I tried installing everything as Traditional DAQ and it did let me set-up the 1540 Card with Excitation Voltage and Frequency and gain - I then went in to the VI that I had built and tried to use the Express DAQ Assisant to read the channel that I am connected to on the 1315/1540 - when I try to use DAQ Assistant it gives me an error saying that "Device not available in NI-DAQmx. It is possible that the device is being use by traditional NI-DAQ"
    Which I guess it is since both configurations are now set-up in MAX.
    I would PREFER to use the DAQmx set-up, but I am confused as to WHY it won
    't come up with
    Analog input>>POSITION>>LVDT
    When I try to create a new DAQmx task.
    Thanks for the help so far! As you can probably tell I am new at this.
    Ryan
    Attachments:
    nireport.txt ‏2 KB

  • [svn:osmf:] 13988: PARB feedback: change mediaWidth and mediaHeight properties on layout renderer related classes to measuredWidth , and measuredHeight.

    Revision: 13988
    Revision: 13988
    Author:   [email protected]
    Date:     2010-02-05 00:24:52 -0800 (Fri, 05 Feb 2010)
    Log Message:
    PARB feedback: change mediaWidth and mediaHeight properties on layout renderer related classes to measuredWidth, and measuredHeight.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/composition/CompositeDisplayObjectTrait.as
        osmf/trunk/framework/OSMF/org/osmf/containers/MediaContainer.as
        osmf/trunk/framework/OSMF/org/osmf/display/MediaContainerGroup.as
        osmf/trunk/framework/OSMF/org/osmf/layout/DefaultLayoutRenderer.as
        osmf/trunk/framework/OSMF/org/osmf/layout/ILayoutTarget.as
        osmf/trunk/framework/OSMF/org/osmf/layout/LayoutRenderer.as
        osmf/trunk/framework/OSMF/org/osmf/layout/LayoutTargetSprite.as
        osmf/trunk/framework/OSMF/org/osmf/layout/MediaElementLayoutTarget.as
        osmf/trunk/framework/OSMFTest/org/osmf/display/TestMediaContainerGroup.as
        osmf/trunk/framework/OSMFTest/org/osmf/layout/TestDefaultLayoutRenderer.as
        osmf/trunk/framework/OSMFTest/org/osmf/layout/TestLayoutRenderer.as
        osmf/trunk/framework/OSMFTest/org/osmf/layout/TestMediaElementLayoutTarget.as
        osmf/trunk/framework/OSMFTest/org/osmf/layout/TesterLayoutTargetSprite.as

    Hi Lucas, 
    We don't recommend making layout renderers for each item that needs to be laid out.  In fact you shouldn't be creating layout renderers at all (they are created automatically by the MediaContainer).  The best way to layout Media is to add LayoutMetadata to the MediaElements.  If you want to integrate layout into your controls, which aren't MediaElements, I wouldn't suggest you place them manually on the stage, and do you yourself.  If you absolutely need to use the OSMF layout system, I would recommend creating a MediaElement to wrap your controls, and then give the wrapper the layout metadata you need.   The easiest approach though, is to look at the OSMFPlayer example, which has a skinnable player.  You can specify image for every button in the player, as well as background color, etc....
    We will be releasing a white paper on the subject of layout in the coming weeks.   I'll be sure to include a section on laying out your player controls.
    Ryan O'Connell
    OSMF Engineering

  • Queues, Priority and SLOs - Some confusion

    Hello all,
    Please bear with me on this one, I'm currently trying to get my head around Queues and SLOs with regards to priority. My existing helpdesk software uses a lot of odd terms to describe all these items so I'm having some trouble while setting up SCSM
    2012.
    Some background; we don't use tiers of helpdesk but rather departments (Desktop, server, infrastructure etc) so any job comes along unassigned and anyone can pick it up and assign it to the correct department.
    The question I have is that if I set a incident's priority using the urgency and impact, do I need to do an SLO for each level (1-9) of the priority and set a target and warning threshold for each?
    Cheers

    You will have to ask yourself some questions first.
    Do you want to use all 9 priorities?
    Do you want to apply an SLO to all (9) priorities? Do you really have a SLA agreement that applies to all possible incidents (and/or service requests)?
    Normally you would only apply an SLO for the most critical incidents, or incidents or other requests you have a standard solution time for (like something that is (semi)-automatic.
    Do you want to apply a SLO to all types of incidents (again look at available SLA agreements)
    Lastly there is not much point in having SLOs if they are not respected
    You can have different entry-points on the service manager portal that allows you to automatically route the request to the proper team/department/support group/whatever.
    Cheers,
    Anders Spælling
    Senior Consultant
    Blog:  
    Twitter:   LinkedIn:
    Please remember to 'Propose as answer' if you find a reply helpful

  • CSS Background properties

    Hi there and thanx for helping me out.
    I'm having trouble with my background properties in CSS.
    I used CS3's Two Columns, Header & Footer, Fixed template
    to build my
    site.
    I have a background which I want to use. It must not repeat
    and also
    must be fixed and not scroll with the page.
    When using this:
    background-image: url(../graphics/background.jpg);
    background-repeat: no-repeat;
    The image shows perfectly well
    BUT, when adding:
    background-attachment: fixed;
    my background does not appear and has disappeared.
    Can someone please help me? This happens with both FireFox
    and IE.
    Thank you so long.
    Deon

    Try something like this. Good luck, Tom
    table
    margin-top: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: auto !important;
    width: 850px !important;
    height: 100% !important;
    text-align: left !important;

  • User Task -- isGroup and taskGroupID

    Hello.
    What are the isGroup and taskGroupID properties of User Task used for. I might be missing it, but I cannot find them in the documentation. I am asking because we are building functionality in which we are wanting to group tasks together.
    Thanks in advance.

    1) isGroup identifies if a task is assigned to more than one user or a group.
    2) taskGroupId refers to the parent task id in a sub task. A subtask is a task created for a parallel flow.
    Please note that these 2 attributes of the task are internal fields set by the workflow service. Since these attributes are not supposed to be changed by any client, there is no guarantee that the user set values will be preserved - meaning the service will set the value accordingly for these fields during invocation of the task service.

  • Update Work Process and Background work process

    Hi Friends,
    I have a doubt regarding the "Update Work Process and Background work process" ......
    which one is used at what scenario ?????
    If not wrong --> update work process is used when there is an update task .........??? and similarly If background work process is used when there a background task is given explicitly .........???
    Can we can update anything through Background>????
    If yes .... which workprocess will be selected at that time??????
    Expecting your answers ??
    Thanks in advance !!
    Cheers
    R.Kripa.

    HI
    GOOD
    UPDATE WORK PROCESS->
    http://help.sap.com/saphelp_nw04s/helpdata/en/e5/de86e135cd11d3acb00000e83539c3/content.htm
    BACKGROUND WORK PROCESS->
    http://help.sap.com/saphelp_nw2004s/helpdata/en/4a/2d513897110872e10000009b38f889/content.htm
    THANKS
    MRUTYUN

  • Missing task bar and screen icons/Windows 7

    My pc boots up fine but after it's finished, I only have a backround screen, no task bar and no screen icons.  Is there a fix for this?

    Try this:
    Right-click the desktop.
    Select View > Show desktop icons (if it doesn't have a check mark next to them, your icons don't display).
    Move your cursor to the very bottom of the desktop and see if the taskbar doesn't pop up into view. If so, right click it.
    Click Properties.
    Clear the Auto-hide the taskbar check box.
    Please let me know if that works.
    Although I am an HP employee, I am speaking for myself and not for HP.
    Please click the little thumbs-up dealybopper to the lower right if my reply was helpful to you. Please mark Accept As Solution if it solves your problem. This will help others, too!

  • How can we modify the Task Priority in BPM workspace???

    How can we modify the Task Priority in BPM workspace??? Is it possible?? If so what is the best and easy way to implement this??

    Hi Chandra,
    First please find the job name in SM37 for FIGL and check the job status to be in "released" status. Select that job and go to job menu and click on change. then it will take you to the job screen where you have "job class". Here you can change the job class to "A" to get to high priority.
    If you are unable to edit the job then create a new job with the same variants by clicking STEP button in the Job screen.
    Try these steps, let me know if are able to do so.
    Regards,
    Ravi Kanth

  • Errors when attempt to execute task 'Approve and Deploy to Product'

    Hello all,
    I updated the pricelists from BCC, an error occurred when I attempted to execute task 'Approve and Deploy to Production', it shows ‘atg.epub.workflow.process.WorkflowProcessResources->invalidTargetName : There is no target with the given name Production.’
    Here is the ATGPublishing server error log:
    atg.process.action.ActionException: atg.epub.workflow.process.WorkflowProcessResources->invalidTargetName : There is no target with the given name Production.
    Can anyone tell me how to resolve this error. Thank you in advance.

    Check this in your production BCC component browser.
    /dyn/admin/nucleus/atg/epub/workflow/process/WorkflowProcessManager/?action=seedefinition&process=/Commerce/editCommerceAssets.wdl
    Search for approveAndDeployProject, you will find the target. Make sure its correct and same String value is used in BCC when creating sites.
    And make
    atg/epub/Configuration.properties
    queryWorkflowTargetByID=false
    Otherwise send me the contents from dyn/admin
    Peace
    Shaik

  • How to change task priority?

    How to change task priority? Task has been created and user claim it. TaskManager do not have method to change priority

    That is exactly how I did it. I did have a space after the 10, and I dragged the application to the terminal window, and it responded with the "Not found" error message.
    I will try the renice when I get home tonight. At work I am using Windows 2000 and Lotus notes (AAAArrrrgh!). I also support 4 PDP-11s and 6 antique VAX systems and an old Stratus.
    I have renamed the title of my position to "Paleocybernetic Systems Administrator".

  • Spawn jobs are not getting priority and target servergiven at selection scn

    Hi Abapers,
    I am scheduling main program as a job in backend through FMs JOB_OPEN, JOB_SUBMIT and JOB_CLOSE with priority and target server taken from user at selection screen through SE38,after executing the job,job will generate the spawn jobs (i.e child jobs). The spawn jobs  also be scheduled with same priority and target server from taken user. But after completion of main job execution, the spawn jobs are not generating with same priority and target server taken from selection screen. May be its getting refreshed.
    Please give me an idea how the spawn jobs also have to get the same priority and server of main job?
    Please reply as soon as possible. I need it urgently.

    Hi,
    I have used below statements for ADD EXTRACT and ADD REPLICAT.
    ------Extract
    ADD EXTRACT ext_1, TRANLOG, BEGIN NOW
    -------Data Pump
    ADD EXTRACT pump_1, EXTTRAILSOURCE /app/ggs/trail/local_trail_1/ta, BEGIN NOW
    -------Replicat
    ADD REPLICAT rep_1, EXTTRAIL /app/ggs/trail/remote_trail_1/tb, BEGIN NOW, CHECKPOINTTABLE ogg.tarun_chk
    Yes, i have tried tutorial at Oracle Learning Library.
    Thanks
    Tarun
    Edited by: user8886876 on Feb 12, 2012 9:56 PM

Maybe you are looking for

  • Printer HP officejet pro 8610 all in one is offline

    Hi when y try to pint the dialogue box says printer is offline ". It doesnt  print.I had a problem with electricity cut in all the neiborhood. After this episode it stopped printing showing this label. What can I do to solve the problem?The printer w

  • Acrobat 9.4.6 on Lion loads s l o w

    Recently, Acrobat 9.4.6 on Lion is loading extremely slow. When I try to open a PDF, it might up to 5 minutes to load.  I've tried uninstalling Acrobat and then reinstalling hoping that it would replace/repair any possible corrupted files with no luc

  • Quick preview/ How do I disable Hot&coldSpotw

    Hi, in the first version of Aperture I had no Hot&Coldspots in my Quickpreviews. Now I do have this al the time in Aper 3. How can I shut this off. I only would like to have this in my normal view.

  • (T530) Driver for port replicator M01060 windows 7 64 bit

    Hi. Where can I download a driver for the M01060 port replicator. When i attach it to the usb port, windows starts installing drivers, but reports errors with driver for ethernet and video. Keyboard and mouse works ok when attached to the port replic

  • Deploy adobe FlashPlayer without Checking for Updates

    Windows 7 Enterprise SP1 Adobe Flash Player 14 ActiveX 14.0.0.176 Internet Explorer 10.0.9200.17089 Hi there Since some days, the user get the Update popup from Adobe for installing the new Flash Player. In the .cft file: AutoUpdateDisable=1 SilentAu