How to terminate/destroy a user thread running in background?

Hi All!
I m using t.destroy() to stop a background running thread, as t.stop() is depricated in Java 2. I implement Runnable in the background thread. On calling t.destroy() NoSuchMethodException; don't know whats the problem there?

I still don't see any solutions to the issues with performing a Runtime.exec, or stopping a thread from the outside.
Here's my situation - I have need to make a framework that processes "work" asynchronously. Work is an abstract concept that is realized (an interface is implemented) by other classes. Work comes into the system and is persisted. A seperate mechanism gets the work and processes the work when possible.
Processing "work" is an abstract concept that is realized (interface is implemented) by other classes.
All the threading/asynchronous behavoir is in the framework.
Thus I can't control how work processing occurs within the framework. At certain points I do have to be able to interrupt the work from the outside. Thus the framework threads are busy doing "work" (defined in a class not "known" to the framework) - but the framework has to shutdown.
So I'm left with thread.stop
Yes - the framework threads are designed around a volitile "continueProcessing" flag.
Yes - some of the tasks can perform their work in piecemeal and use this flag.
No - not all the work can be done in a piecemeal way.
This whole framework is a solution to situations where multiple high-CPU, high-memory, asynchronous tasks get flooded into the app-server (we don't control the clients - they are outside this business).
So we persist the request, and have a framework polling for more work. That way even if 10000 requests hit us as the same time (it has happened); we don't get floored.
We tried sevlet and JMS processing, but those both have back-log limitations. We could poll for work, then send the request to a seperate JMS queue that terminates in a MDB but this exposes an entry point into work processing. And the whole point of this is to control the amount of processing occurring at any given time, without losing any of the requests.

Similar Messages

  • I hear a lot of disk I/O from my iMac 1TB drive.  How can I see apps may be running in background?  Time Machine is not running.

    I hear a lot of disk I/O from my iMac 1TB drive.  How can I see apps may be running in background?  Time Machine is not running.

    If you wnat to see the applications that are running, open the Activity Monitor application (it's in /Applications/Utilities). After opening it, select "All Processes" above "Show" in the toolbar, and you will see all the processes that are running.
    I/O errors often happen on a damaged hard drive. If you are receiving that error, you should make a backup with Time Machine or Carbon Copy Cloner as soon as possible and take your Mac to an Apple Store or reseller to get another hard disk.
    If the warranty is void, you can try installing it yourself, but note that there are some iMacs which are very difficult to have the hard drive replaced. Search the steps in iFixit > http://www.ifixit.com

  • How to create a process which is running in background?

    I am developing an application which creates a data file after some queries are done. The user sees a message saying that the data file is being preparing and a email notification will be sent to the user. I would like to have the process for creating data files run in background so the user does not wait till that process is done.
    Could someone give me some ideas or suggestions how this should be done?
    Thanks in advance!

    You could use a servlet and run a seperate thread to complete the process. An easier way is to use an IFRAME. You can direct a page to run in an IFRAME that is 0 width X 0 height. The user could then continue on without having to wait on the process to complete.

  • How to rid of "c://users/appdata/local/conduit/background/container/backgroundcontainer.dll "

    hello
    I was wondering if anyone knew how to get rid of  the following that appears each time I start up my computer  ? (win 7) :
          "c://users/appdata/local/conduit/background/container/backgroundcontainer.dll  "
    thanks for the help
    cafe555

    Hi,
    Any update here?
    Did the message occur like this:
    Run DLL
    There was a problem starting
    c:\users\ed\appData\local\conduit\background container\background container.dll
    If so, please check if the below thread could help here:
    Run DLL error message/background container.dll
    http://answers.microsoft.com/en-us/protect/forum/protect_scanner-protect_scanning/run-dll-error-messagebackground-containerdll/49612202-667e-4a71-8e9a-d02161d8bc19
    Hope this might help
    Best regards
    Michael
    If you have any feedback on our support, please click
    here.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • How Warehouse Activity Monitor LL01 Report is Running in background?

    Hi Gurus,
    I am Working in IMWM are & giving support. Client is facing problem with this Report, as this report is not running frequently as per scheduled in Configuration settings. for e.g after 4 hrs or after 12 hrs or 1 week etc.
    Does any body know how this program is running in background?
    Do I need to create any Batch Job for this?
    As per our developer no need of Batch job, it has to run automatically. So if anybody know this, please let me know ASAP. We need to submit solution to client.
    thanks & regards,
    Anant Joshi

    Hi,
    Maybe I'm mistaken but I can't see any sense of running LL01 as background job. I think users have to run the report themselves, and it is possible to refresh it in the report itself or by running it again.
    Please check (run) the transaction in SAP and check SAP online help:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/c6/f83aa34afa11d182b90000e829fbfe/frameset.htm
    The functions of the warehouse activity monitor are intended to assist warehouse administrators to oversee, plan and optimize work processes in the warehouse.
    This report requires users' interaction so, I can't understand what you want to achieve.
    Regards,
    Csaba
    Edited by: Csaba Szommer on Jan 13, 2009 10:35 PM

  • How to have Weblogic and BAM process run in background

    I ssh to the Weblogic (also the BAM) server via putty and use below command to start the weblogic and BAM:
    /opt/oracle/Middleware/user_projects/domains/base_domain/startWebLogic.sh
    /opt/oracle/Middleware/user_projects/domains/base_domain/bin/startManagedWebLogic.sh bam_server1
    And then I have no way to have the weblogic and BAM run in backgroup as it needs to ask me for login and password. I cannot close the ssh connection neither otherwise the weblogic and BAM processes will die
    Clay

    Hi Clay,
    Both these points can be easily handled.
    To start admin server enter the below command with the &. This & will make the process run in background.
    . /opt/oracle/Middleware/user_projects/domains/base_domain/startWebLogic.sh &
    If you want the logs to be redirected to some file then you can use a nohup as given below
    nohup . /opt/oracle/Middleware/user_projects/domains/base_domain/startWebLogic.sh &
    Same holds good for bam serevr also
    . /opt/oracle/Middleware/user_projects/domains/base_domain/bin/startManagedWebLogic.sh bam_server1 &
    OR
    nohup . /opt/oracle/Middleware/user_projects/domains/base_domain/bin/startManagedWebLogic.sh bam_server1 &
    It will respond to you with the process-id, you can just hit an enter and safely close the putty session while the server is still up & running.
    To stop the same, in a new putty session you can enter the below. Here you need not(will not) give &
    . /opt/oracle/Middleware/user_projects/domains/base_domain/stopWebLogic.sh weblogic welcome1 t3://hostname:port
    . /opt/oracle/Middleware/user_projects/domains/base_domain/bin/stopManagedWebLogic.sh bam_server1 t3://hostname:port
    Password:
    As you see above we are not passing user-id/password while starting the server. We need to create a file named boot.properties and place it in /opt/oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/security directory. security directoy will not be present, you have to create it.
    Contents of boot.properties file will be only 2lines as below
    username=weblogic
    password=welcome1
    On next startup server will encrypt the password.
    Same boot.properties file has to be created in /opt/oracle/Middleware/user_projects/domains/base_domain/servers/bam_server/security location.
    Hope this answers your question.
    Thanks,

  • How to make Forms 9i User Exits run on DB server.

    We have a memory resident C programs developed in Oracle EE 7.3.4 and Dev2K (charecter based) on HP OpenVMS. Since the application is character based forms/reports - all the components are configured in one single server. There was no problem for us to write user exits and run C programs on the DB server.
    Now we want to migrate to Oracle 9i and 9iAS.
    My big question is How can we call memory resident C programs running in database server from 9iAS node. 9iAS node is separate Windows 2003 server in the 9i implementation.
    Any suggestions on how we can implement this. We understand that WebUtil runs userexits on the client PC. We need similar functionality to run on the DB server. Any ideas would be appreciated.
    Thanks in advance.

    Whoops, meant to include this:
    OS: All clients on WinXPPro. Forms are hosted in an simple open-access folder on a server running SqlServer 05 (no SharePoint yet). I'm designing the new form in Adobe Acrobat 9.2 Pro based on a Word 2007 document.
    Thanks again!

  • How to give permission to user to run and install application like data card or modem

    Hi,
    when a standard user try to use an Data card (airtel 3G Dongle), windows 7 prompts for a administrator password to run the application.
    I have to go and type admin password each time when that person uses the dongle. Is there any way that  i can give permission for that user account only to run that application without admin password.
    I don't want to add him to administrator group and then it will be a mess.
    please help me out here............
    Thanks in Advance.

    I would check to see if there is software that can be downloaded to the PC from the manufacturer. I am assuming your device is a "plug and play" device. The manufacturer might still have the device drivers for install on their website.
    Installing the drivers manually should alleviate the problem
    Otherwise, you can make the changes in Group Policy to solve the problem
    See this link: http://technet.microsoft.com/en-us/library/cc725772.aspx

  • How to terminate the program after we run it?

    I am doing Ehernet LabVIEW program.In that program I developed the code for generating message box if the bytes u sent to another system should have to come back again.If the bytes are coming in the result then the message box  should appear as "Ehernet Test Passed".If it is False  then message box should appear as "Ehernet Test Failed".When I run the program the message box was appeared.I put the message box in the Case structure.After running the program the loop was not terminated.How can I overcome the problem.I attached my vi.Pl verify this.
    Attachments:
    new_ethernet.vi ‏45 KB

    Hi
    First of all - you don't have any loop in your vi.
    If you want to exit LV after running the vi, you can use the "Quit LabView" function. The "Stop"-function just stops the vi, which actually does not affect your vi, as it stops automatically, after closing the messagebox.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...

  • How can I restrict the user to run the report based the access level at access table backend?

    I have a report which pulls data of servicetickets. Now I have to work on security part which should retrict the people to look for specif sales team tickets based on their access at backend. They should access the tickets of the sales teams which they have
    access. Can anyone help on this.
    Thanks,
    Swapna

    Getting error as
    Msg 536, Level 16, State 2, Line 7
    Invalid length parameter passed to the RIGHT function.
    and
    (Tut.AdloginID
    = RIGHT(@ReportUser,
    PATINDEX('%\%',
    REVERSE(@ReportUser))
    -1)
    OR
    EXISTS (
    SELECT *
    FROM dbo.TicketingUserTeams Tut
    WHERE Tut.Team
    = 'Ticketing Admin'
    AND Tut.AdloginID
    = RIGHT(@ReportUser,
    PATINDEX('%\%',
    REVERSE(@ReportUser))
    -1)
    Swapna

  • How to debug a program which is running in background (Job)

    Hi,
    I have a program which can be run only in background. I have to debug that program. Could you please let me know, how can I do that?
    Thanks,
    Sandeep

    basic FAQ, please search before asking.
    Thread locked.
    Thomas

  • How to see if invisible program is running in background?

    Hello,
    I'm trying to help my friend who has an iMac running Snow Leopard (10.6.8). Her email and Facebook keep getting "hacked", and even though she changes the passwords to long and complex things that nobody could ever guess, someone is still able to figure out her passwords. The only way we think this could be happening is if someone broke into her home and put some type of "keystroke capture" program so that they could look at it while she's at work and get her passwords that way. We simply can not come up with any other way that her passwors are being discovered, and unfortunately we think it's a jealous ex-wife that is doing this.
    I seem to recall in Snow Leopard that there is a way to see what is running in order to see how much memory is being taken by each task or program on the computer, but I don't recall where to go on the computer to monitor that information. Can someone please point me to where that information is, and if you have any other advice on how to check to see if a program is running without her knowledge, I would sure appreciate any input.
    Thank you very much!

    Great---thank you very much. I actually do recognize everything there, so we are baffled as to what's going on.
    Thanks again!

  • How do I change the user log in screen background on Lion?

    Note:I'm talking about the screen for Users Log where multiple users log in.
    Right now the default is a solid grey. there has to be a way to change it to something more esthetically pleasing.

    Look for a previous entry in this group
    "Lion Default Login Window"  It was back around August 2nd or so.
    There may be a better way than is listed in that thread but so far I haven't found it but I have been tied up with other Lion problems and have not really looked much further on the default login window issue.

  • How to find whether a program is running in background

    Hi,
    I have a requirement to find out whether a program is being executed in background. If the same program is executed manually then it should not execute, the time when the same program is being executed in background.
    Please suggest.
    Thanks.
    Marked as a question
    Message was edited by: Rich Heilman

    You can put a lock on the program inside the program, so that when it is run it puts a lock entry in SM12, then anyone trying to run it will get a message saying that the program is locked.  USe the TRDIR lock object.
    report zrich_0001 .
    data: repid type sy-repid.
    repid = sy-repid
    call function 'ENQUEUE_E_TRDIR'
      EXPORTING
    *    MODE_TRDIR           = 'X'
        NAME                 = repid
    *   X_NAME               = ' '
    *   _SCOPE               = '2'
    *   _WAIT                = ' '
    *   _COLLECT             = ' '
    EXCEPTIONS
       FOREIGN_LOCK         = 1
       SYSTEM_FAILURE       = 2
       OTHERS               = 3
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Welcome to SDN
    Regards,
    Rich Heilman

  • Creating AppModule in a background user thread (NPE)

    Hello!
    The application uses a user thread (OC4J is running with -userThreads option) which used for perform some background tasks.
    We want the thread creates an application module, fires some methods, releases the module and exit.
    So, we have a code fragment like this in run() method:
    service =
    (AppModule)Configuration.createRootApplicationModule(SERVICE, SERVICE_CONFIG, null);
    service.doSomething();
    Ihe following error is occurring:
    06/12/12 20:44:06 java.lang.NullPointerException
    06/12/12 20:44:06      at com.evermind.server.http.EvermindHttpServletRequest.unprivileged_getSession(EvermindHttpServletRequest.java:2609)
    06/12/12 20:44:06      at com.evermind.server.http.EvermindHttpServletRequest.getSession(EvermindHttpServletRequest.java:2592)
    06/12/12 20:44:06      at oracle.jbo.http.HttpSessionCookieHelperImpl.generateSessionId(HttpSessionCookieHelperImpl.java:175)
    06/12/12 20:44:06      at oracle.jbo.http.HttpSessionCookieFactory.createSessionCookie(HttpSessionCookieFactory.java:113)
    06/12/12 20:44:06      at oracle.jbo.common.ampool.ApplicationPoolImpl.createSessionCookie(ApplicationPoolImpl.java:452)
    06/12/12 20:44:06      at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1540)
    06/12/12 20:44:06      at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1504)
    06/12/12 20:44:06      at ut.ThreadWorker.run(ThreadWorker.java:48)
    06/12/12 20:44:06      at java.lang.Thread.run(Thread.java:595)
    Please, anybody have access to sources, what you can say about this trace or do you have another ideas how to launch module from user thread?
    Thanks in advance!
    Ilya.

    Repost.
    Now I am trying to solve this issue by investigating, why module is running without errors if launched from console. In this case ApplicationPoolImpl.createSessionCookie is also fired, but don't try to obtain HttpSession from web container. When module is launched from background thread the pool ans session factory trying to do it (and error in EvermindHttpServletRequest.java occurs because there is no any requests).
    Ilya.

Maybe you are looking for

  • How to delete one number in the dial pad dropdown list?

    When calling a phone number from Skype, I mistyped the phone number.  Now whenever I call a phone number, the dial pad's dropdown list includes the mistyped phone number.  I want to delete that single number from the dial pad's dropdown list. Unfortu

  • IdeaPad Flex 15D no virtualization option in BIOS 94CN07WW (AMD APU A6-5200)

    Lenovo IdeaPad Flex 15D (AMD APU A6-5200) does not have virtualization option in BIOS version 94CN07WW. What this means is if one wants to run for example Virtualbox, then one would only be able to vitualize a 32-bit operating system, instead of eith

  • How to make keyboard modal?

    I have a bunch of text edit fields. When the user clicks on one of them the keyboard comes up. But they can touch on another field before they click the DONE button on the keyboard, then they might be editing two fields. I am currently closing off th

  • XML serialization vs. normal serialization

    Hey all, Great to see the forums in use! :) One thing I've never been quite clear on -- when does it make sense to use Coherence's XML serialization vs normal object serialization? Any tips would be appreciated. Thanks, Matt

  • Keyboard shortcuts... cum pad doesn't work like it should

    hello. i'm on osx using indesign cs4. in indesign all the shortcuts involving numbers like fit spread to window, etc do not work. i can assign shortcuts to the numb keys but no modifiers. but also when i enter the key instead of "1" showing up, it sa