How to run tasks with priority?

Hello everyone,
I want to run tasks with priority, i.e. among several simultaneous running tasks, the task with the higher priority will have more chances to occupy CPU time. I have the following 2 issues dealing with the implementation of such feature.
- To define each task as a thread or as a method? How to change the priority of each task dynamically when they are running?
- The priority feature of Java thread does not meet my requirement, since I can not define priority precisely. For example, I want to define that a task with priority A will occupy CPU time 3 times than a task with priority B.
I am wondering whether I can find similar open source projects or tutorials?
Thanks in advance,
George

how to run autoconfig with out effecting database
or
which mode i have to run What do you mean by not affecting the database?
The database and the database listener should be up and running when you run AutoConfig on the Application/Database tier nodes.
Please see (Autoconfig FAQ [ID 218089.1]) -- Which files / profile options get changed when I run AutoConfig?
Thanks,
Hussein

Similar Messages

  • How to run applications with options in IDEs like Netbeans

    Hi, I'm new to the Netbeans IDE and I'm wondering how to run applications with options.
    Normally I'd enter the following in the command line:
    java -Djavax.net.ssl.keyStore=mykeystore -Djavax.net.ssl.keyStorePassword="..." TLSServer
    java  -Djavax.net.ssl.trustStore=mytruststore -Djavax.net.ssl.trustStorePassword="..." TLSClient localhostProblem is, I've no idea how to do the same thing in IDE's like Netbeans and I can't any settings to add options like "-Djavax.net.ssl.keyStore=mykeystore" before running the application. Any help will be appreciated.
    Message was edited by:
    Wolfgard

    Right-click the project, click properties, clicl run, and add parameters to VM Options.

  • How to run etherape with ordinary user?

    hi
    when run etherape show this massege:
    No capture device found or insufficient privileges.
    Only file replay will be available.
    EtherApe must be run with administrative privileges (e.g. root) to enable live capture.
    Pcap error: no suitable device found
    i create group etherape with this ownership
    ┌─[root@mymind] - [/etc] - [Sat Feb 04, 12:02]
    └─[$] <> groupadd etherape
    ┌─[root@mymind] - [/etc] - [Sat Feb 04, 12:02]
    └─[$] <> chgrp etherape /usr/bin/etherape
    and add my user to this groups
    ┌─[root@mymind] - [/etc] - [Sat Feb 04, 12:02]
    └─[$] <> usermod -G root,network,http,mysql,dbus,mem,bin,daemon,gdm,audio,video,rfkill,wheel,disk,sys,etherape mostafa
    how to run etherape with ordinary user(without root privilege)?
    Last edited by mostafasedaghat (2012-02-03 20:37:44)

    mostafasedaghat wrote:how to run etherape with ordinary user(without root privilege)?
    You can't. It requires root to set network card attributes, which can only be set with administrative priviledges. But it should be no problem to start it with sudo.

  • How to run FSG with ADI..

    Hi
    Can any one guide me how to run FSG with ADI..?
    regards
    Ahsan

    Pl post details of OS, database and EBS versions. Pl see if MOS Doc 131505.1(The Beauty of FSG in ADI) can help.
    More information will be present in the manuals for your Apps release at http://www.oracle.com/technetwork/documentation/applications-167706.html
    HTH
    Srini

  • How to run servlet with tomcat

    I have a probrom that how can I run servlet with tomcat?
    I have new a folder classes in webapps\root\WEB-INF\,and put the .class
    programme in it ,but http://localhost:8080/servlet/HelloWorldExample
    can't run ,it give me a error than http:404 not found.
    could you tell me how i can solve the problem.
    Thank u very much.

    Hi,
    Make sure the class is in classpath or in WEB-INF/classes folder and make an entry for servlet tag in web.xml in WEB-INF folder.
    Regards

  • JDB: How to run jdb with sun.* classes.

    I'm attempting to run jdb and step through various classes in sun.*. I run jdb with the sourcepath set to the unzipped contents of the Sun Community License source code that I downloaded (jdb and source code version 1.3.1). However, every time I get to an internal Java API call, the "step" method skips over the call. I can do a "stop in" by specifying the particular internal Java method that I want to stop in and "list" will show me the Java code (which means that it is seeing the Java source). However, typing "step" at this point runs to the end of any of the Java internal methods and back to my own code.
    Is there a way that I can instruct the debugger that I really want to step into the Java internal classes?
    Thanks,
    Kevin Regan
    [email protected]

    Oh yeah, I'm hoping for my first Duke Dollars!
    You must issue an "exclude none" command to jdb
    to be able to trace sun.*
    In fact if you type "exclude" you can see that
    java.*,javax.*,sun.*,com.sun.*
    are excluded from steping by default in jdb(1.4.x)
    -Cameron Elliott
    [email protected]

  • I need a PPT for user how to run reports with perfomance

    Hai BW guys...
    For our end-users we need one slide that gives them some hints/tips on how they should run the reports for best performance (e.g. extract as few records as possible).
    I know there is some SAP material in relation to this on sdn.sap.com. Could you make me a slide with some hint and tips for fastest report execution for end-users ?
    Plz help me out

    Hi
    Check the following links
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/828d9590-0201-0010-95a7-ea8cf8814b94
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ec20a990-0201-0010-f291-d1d039975e41
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a249a990-0201-0010-e18e-b2f5ed135497
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bc4fa990-0201-0010-588e-ca4e63050d6d
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b931a890-0201-0010-268d-a7bedf8aa720
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f0aca990-0201-0010-0380-f3aac4127a57
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3541a990-0201-0010-f1ae-b24b72690df7
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2642ab90-0201-0010-9193-d59de66cbab4
    http://searchsap.techtarget.com/searchSAP/downloads/chapter-august.pdf
    http://searchsap.techtarget.com/featuredTopic/0,290042,sid21_gci1121728,00.html?bucket=REF
    It will be useful to prepare your endusers
    Regards
    Ganesh N

  • How to run IE with administrator privileges on limited user account?

    Hello,
    I have a domain user who needs to access a certain web application on the internet using IE and to do so we have to add this website to IE Trusted Sites Zone and also allow Pop-ups, the issue now is that the domain user has a limited account on this PC (Windows
    8.1) and changing these settings is not available. I only have (General-Connections-Programs) taps available under IE Internet Options for this user.

     web application is not working just like before. Did i miss something?  
    Not necessarily.  Some users have a problem with security packages which are "protecting" their registry.  Also, during a beta I discovered that elevation of the Internet Options dialog and trying to do a RIES had resulted in the
    Administrator's Profile being nuked, not the one that was being targeted.  Perhaps you are seeing a symptom from something like that? 
    FWIW I would run ProcMon to find out what is going on.  It would be best if you had two cases, one which worked and one which was the problem case.  Then you could save both traces as .PML files and open them later to compare them in two separate
    ProcMon tasks.  That way you can just filter coarsely to find a significant divergence in the two traces and then refine your analysis from there.  Otherwise, if you don't have a clear hypothesis to test or know exactly what you are looking for you
    could try using the  Category Is Write  filter.  That would show changes which were being done in both the Registry and File system.
    Good luck
    Robert Aldwinckle

  • How to run portal with business intelligence installation?

    i have a system suse linux enterprise edition 7.3. and my hardware is p4 cpu 1 gb memory and 80 gb hdd.
    i installed oracle9ias r2(9.0.2) . my installation is "business intelligence".but my aim is to run oracle9iportal."
    my directory structure is
    /opt/oracle/infrastructure
    /opt/oracle/applicationserver
    /opt/oracle/appserver
    one infrastructure and two applicationserver on one host.
    i read the Oracle9i Application Server Administrator's Guide
    Release 2 (9.0.2)
    i have some questions
    1-You can install multiple application server installations and infrastructures on the same host. Each must have its own Oracle home.
    if so why do i need to change all times "@ORACLE_HOME" path according to others.? is there another solution
    2-which steps do i follow to run portal?
    3-must i run infrastructure structure before starting application server ?
    best regards
    1-

    Hi Dharani,
    Please check this thread.
    How will do the connectivity with SAP and Non Sap System
    Also ensure you avoid cross-posting. This has been mentioned to you multiple times earlier.
    Cheers,
    Sandeep Tudumu

  • How to run report with selected data in form?

    Hi,
    Imagine I have a form with a Data block with this inside :
    Code | Name
    1 | Product1
    2 | Product2
    I want to run a report that will only select these 2 records from the table "product".
    I manage to run a report from forms, but it's a pre-defiined report that will always display the same things. (all the table)
    Maybe it's with the paramlist, would you have an exemple or tutorial about that?
    Edit : When I create the report object in the form, I can give the source Data Block, but how to use in the report Data Model?
    Edited by: Danicela on 24 avr. 2009 10:41

    One way to achieve this is to use a "temporary" ID-table.
    Create a table with just two columns RUN_ID and ID
    Then, in forms before starting the report, create a new RUN_ID, e.g. by using a sequence and then, for every record in your block, create a record with the RUN_ID and the record's PK-column-value, in your case this might look like
    RUN_ID  ID
    4711     1
    4711     2Commit that data in Forms (e.g. with using an autonomous transaction).
    Now, pass the RUN_ID as a parameter to the report, and in reports, restrict your query like
    SELECT ..
      FROM YOURTABLE
    WHERE ID IN (SELECT ID
                    FROM ID_TABLE
                   WHERE RUN_ID=:PARAM_RUN_ID
                 )To be clean, delete the data with the run_id in the AFTER-REPORT-trigger of the report.

  • Task Scheduler Won't Run Task With Idle Condition

    When I schedule a task to run Disk Cleanup with a one minute idle condition the task does does not run successfully and provides the following run result.
    The Task Scheduler service has asked the task to run. (0x41325)
    If I manually run the task or remove the idle condition the task runs and completes successfully.
    Why won't the task start with an idle condition?

    Hi,
    I noticed that you set the idle time shorter than the waiting for idle time. In my opinion, we should set the idle time longer than the waiting for idle time if we schedule a task running during the idle contidion. As the documents described, the Task Scheduler service will verify that the computer is in an idle state every 15 minutes. If a task is set to start only if the computer is idle for 30 minutes, and the task waits for the computer to be idle for 10 minutes, then the task will launch in 5 minutes only if the computer has been idle for 25 minutes prior to the time the trigger was activated. The task will not start if the computer enters an idle state 5 minutes after the trigger is activated. For more information, please refer to Task Idle Conditions.
    Best Regards
    Dale

  • How to manage tasks with variable duration / amount of work

    Hello,
    I'm currently trying to build a macro planning for my department for the next 2 years.
    In my plan, there is a task that has a variable duration and amount of work. People will start / stop working on it depending on the beginning / end of other tasks. The only way to do this I've found so far is to split the task into multiple subtasks
    (one per resource) that are manually scheduled with start and end dates linked to the dates of the tasks they depend on. However, I think this workaround is really not practical and hard to manage since for each subtask I need to create milestones for linking
    the start date to the next working day. Relationships between tasks are also not visible in the plan. I've also read that in general it' better to avoid using links, but is there a better way to manage this in Project 2013 ?
    Best regards,
    Sébastien.

    Seb_Lz,
    There are several elements of your description that need more detail.
    You mention a variable duration. That could simply be a normal task that changes scope as the plan progresses (i.e. more work content, slipping schedule, etc.), or it could be indicative of what is called a hammock task (See Faq 19 on the MVP website at: http://project.mvps.org/faqs.htm).
    You mention linking as a way to define task dependencies. That is exactly what task predecessors and successors are designed to do. Task links have nothing to do with resources. It's not clear why you say only one resource per task.
    You talk about manual scheduling and entering start and finish dates. Manual scheduling is intended for a very rough first cut at a working schedule. To get the full benefit of Project's scheduling engine, tasks should be auto-scheduled and the whole logic
    network sequence of tasks should be defined by durations and links, not by manually entering dates. It's fine to set critical milestones or use Project's deadline feature, but otherwise let Project tell you how your plan all works given the basic data.
    You say relationships are not visible in the plan. Don't understand that at all since link lines between tasks are shown by default in task views (e.g. Gantt Chart view).
    Not sure where you read that it is better to avoid using links because that is flat out wrong, at least for normal predecessor/successor links within a single file. If you are working with a linked structure (i.e. master/subproject), or using external predecessors/successors,
    then yes, links become a whole new area of concern.
    John

  • How to run procedure(with paramater other than errbuff and retcode) through

    Hi everybody,
    This is Ram. I'm comfortable while running a procedure through concurrent program. but getting error when trying to run a procedure with parameter. Plz let me know the process (if possible example) of running a pl/sql procedure(with parameter) through concurrent programs..
    Regards,
    Ram.

    Hi
    It's difficult to know exactly what to modify to have no errors as those are not specified. However, the rule of thumb is for a procedure to be used as a concurrent program:
    procedure conc_prog(
    errbuf out varchar2
    , retcode out varchar2
    , param1 in varchar2 -- all additional parameters must by of IN type
    , paramn in varhcar2 ) ;
    On the concurrent program definition form, add the parameters from the third one, errbuf and retcode don't neet to be defined. Be careful on datatypes as date an numbers may have format mask problems when passed to your procedure and more possibility for this to happen is more than one language is installed. A safe way to pass those values would be to define parameters as varhchar2 and in your code, define a variable of the right type to use and assign the received value with the format mask defined for the value set associated to the parameter.

  • How to open Task with out UWL

    Dear Experts,
    I want to open task without UWL.
    Suppose we created one task for one user, that user what to open task means he needs to go to UWL and click on the task.
    Requirement is to open task my custom WebDynpro  application.
    How to Get the url of all work items in uwl for one user.
    How to develop my custom UWL application.
    Can any one please help me.... very urgent.......
    Regards,
    Satya

    Hi,
    Look at the [UWL API|https://help.sap.com/javadocs/NW04S/current/uw/index.html].
    Dick

  • How to run programs with older version (windows 98)

    I purchased a software that runs on WINDOWS 98 system..VIRTUAL DJ SOFTWARE..BUT, I cannot run it on my system, which is: WINDOWS 7..HP Notebook G72B54NR..MY QUESTION: "IS THERE A WAY FOR ME TO ALLOW MY HP NOTEBOOK TO ALLOW THIS OLDER VERSION TO OPERATE ON MY WINDOWS 7 SYSTEM"?

    Do you recieve any kind of error message when trying to run it?
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

Maybe you are looking for

  • Error while opening Reports URL

    Hi, I'm facing problem while opening Oracle 11g Reports URL. I was able to start the WLS_REPORTS. The status of the same in Oracle EM is up. But when I try to open the reports using http://<servername:port>/reports/rwservlet I ensured that the port e

  • HT1338 pages not opening documents

    my pages application wont open any of my documents. I can choose to open a file with previesw and it will pull up, so that means the documents are there they just arent opening with pages

  • Consolidation of several numbers forms to one master form/

    In the past using excel as a purchasing or invoicing system I was able to consolidate several sheets into one master for by linking them together under the Data tab then Consolidate. I do not see this function any where in numbers. Can anyone help? M

  • Photoshop cc zoom needs does opposite of what is expected on my windows 8 - is OK on my mac - how to

    On my windows 8 lapt op Just clicking to zoom zooms out and holding the alt key at the same time zooms in. It's the opposite of what should happen. Only me? How to fix? It wasn't like this at first. It works just fine on my mac so it's getting a bit

  • About runtime.exec()

    hi friends, i'm unable to open vb exe file through java application. i'm tring with this code Process p = Runtime.getRuntime().exec("cmd /D:Program Files/Microsoft Visual Studio/VB98/socketappvb/"); p.waitfor() that is the error in my code. thank is