Can we assign the jobs of a thread to other thread

hi
need some help
suppose say a thread A is running and doing some processing. Can this thread A, at a specified time delegate all its jobs to an other thread B, and exit
gracefully? The thread B should take up the jobs left over by thread A and continue processing them.
If so how can we implement this?
please help me.
thanks in advance
sunil

As has been said in other recent discussions regarding threads, a thread pool and a task queue would do the job.
Two main decisions: How to break down the tasks at hand to allow a "graceful transfer" and how to activate the new thread?
Regrading 1: You need to break down the overall task into subtasks, which can be performed by individual methods and that can pass on the state of excecution to the next step in the process.
Either the processing sequence is predetermined or the next step is part of the result set of the current subtask. The queue then holds these tasks for assignment to threads.
Regarding 2: Central thread generation vs. decentral approach: For a clean and debuggable design,
you should go for one "factory" in you application, that is creating threads and handles task assignment. That has the additional benefit, that coordination and load-balancing can be implemented as well (to avoid too many threads or support partial paralel processing). Also, you should re-use threads, instead of letting them die and re-create new ones.

Similar Messages

  • Hi i have 50 infoobjects as part of my aggregates and in that 10 infoobjects have received changes in masterdata.so in my process chain the Attribute change run in running for a long time.can i kill the job and repeat the same.

    Hi i have 50 infoobjects as part of my aggregates and in that 10 infoobjects have received changes in masterdata.so in my process chain the Attribute change run in running for a long time.can i kill the job and repeat the same.

    Hi,
    I believe this would be your Prod system, so don't just cancel it but look at the job log. If it is still processing then don't kill it and wait for the change run to complete but if you can see that nothing is happening and it is stuck for a long time then you can go ahead and cancel it.
    But please be sure, as these kind of jobs can create problems if you cancel them in the middle of a job.
    Regards,
    Arminder Singh

  • How can I suspend the job using IPP_CANCEL_JOB of ipp api

    hi, Can anyone help how can I suspend the job using IPPCANCELJOB of ipp api,so that I can cancel my previous job.
    thanks

    As before, you should try http://lists.apple.com/mailman/listinfo/printing.

  • Can a execute the job in parallel.?

    Please find below my DBMS_SHEDULER job:
    BEGIN
    DBMS_SCHEDULER.CREATE_JOB
    (job_name => 'job1',
    job_type => 'PLSQL_BLOCK',
    job_action => 'BEGIN pk_dt_auto.pr_fire_process(''764''); END;'
    start_date => SYSDATE,
    repeat_interval =>'FREQ = Minutely; INTERVAL = 'SYSDATE+ 30/86400'
    END;
    Can i run the job twice in parallel?..

    Hi,
    For dbms_scheduler (and dbms_job) once a job is running it will NOT be started again until after it has finished. The scheduler ensures that only one instance of a job is running at a given time.
    There is a way around this however. In your job, instead of doing the manipulations, create a simple one-time job with a unique name (dbms_scheduler.generate_job_name) that does the manipulations. Since creating a job is fairly quick the main job will finish quickly and be rescheduled for after the interval but the one-time job will continue doing the work in the background .
    Hope this helps,
    Ravi.

  • Can we assign the same profit center to diff costcenter master data

    hi all
    can we assign the same profit center to diff costcenter master data 
    what are the impacts in control parameters  for actual and plan  dat a
    Thanks
    MvNr

    Hello,
    There is no need that you should have the profit center and cost center one to one relation.
    You can assign number of profit centers to a cost center. Meaning that the same profit center can be used in different cost center master data. Whenever, you make posting to cost center, the same will be flown to profit center.
    For example when you post actual line items, it will update GLPCA and GLPCT in profit center accounting.
    Regards,
    Ravi

  • Can I assign the switch on the side of my ipad to turn on and off wifi?

    Can I assign the switch on the side of my Ipad to turn on and off wifi?

    No. The only choices are audio mute or orientation lock.

  • CAN I ASSIGN THE NEW CHART OF DEPRECIATION????//

    Hi dear AA experts,
    I can not assign the new chart of dep to my company code.
    It gives the message that YOU CAN NOT PROCESS COMPANY CODE XX, IT CONTAINS ASSETS
    Rgds,
    Venkata Raju

    HI Paul Antony,
    Thank you for ur response and for ur answer and Pl read below matter and give me the suggestion.
    Actually Why I want to change the COD because
    AA was implemented in the year 2005 but there were no of mistkes were done. they are
    1) Recon ac not defined in GL ac
    2) In legacy asset master data dep key defined as "0000"
    3) from 2005 onwards users are making the transactions manually in F-02.
    So I have taken this as challenge and I have done new configuration.
    But I have done new Acc Det, Screen Layout, Asset Class, New GLs, Dep Kyesw.
         When I run the depreciation for the year 2007in dev system for new assets it is asking to run the dep from 2005.
         So If we assign the new COD, I think it will not ask to run the dep 2005.
    So now without run the dep for 2005 can I run the new AA acquisitions (after maintain legacy data and GL master data)
    Rgds,
    Venkata Raju

  • How can i assign the Transaction varient to the user in 4.6C version

    How can i assign the Transaction varients n Screen Varients  to the users in 4.6C version.
       Actually Iam using T-code SHD0 for hiding the field in VA11 transaction. In this iam created one transaction varient n one Screen varient.iam not able to activate that screen varient and iwant to assing to perticular users. But i have a option in 4.7 above version my client is using 4.6C version. Please give me the solution as need full.

    Hi,
         Use the PPM toolkit class CL_CRM_PPM_UM_TOOLKIT. You can use the method You can use the method GET_ASSIGNMENTS_OF_USER which returns positions held by an user(user name).  You may also find the method GET_POSITION_OF_USER useful. It accepts username and the organization ID and will return the positions held by the user under that organization.
      This class always uses the current plan (01). If you want otherwise, you can use the FM RH_STRUC_GET. As to how this FM should be used, look inside the above said methods.
    Regards,
    Arun Prakash
    Edited by: Arun Prakash Karuppanan on May 11, 2010 11:40 AM

  • Hi. I have a MacBook Pro with OS10.6.8 and cannot get net pages to load on my network at home. I can connect to the internet in work and on other networks. However, some other networks are now starting to fail. Can anyone suggets how I can fix it??

    Hi. I have a MacBook Pro with OS10.6.8 and cannot get internet pages to load on my WiFi network at home. My iMac, iPhone and iPad all work on this network.  It is connected to the net as dropbox registers a connection and so does skype. I can connect to the WiFi in work and on other networks when travelling. However, some other networks are now starting to fail. Can anyone suggets how I can fix it, as the MBP appears to be fine, its updated with all the latest versions of software and the WiFi network is also fine....just not with my MBP??

    Hi. I have a MacBook Pro with OS10.6.8 and cannot get internet pages to load on my WiFi network at home. My iMac, iPhone and iPad all work on this network.  It is connected to the net as dropbox registers a connection and so does skype. I can connect to the WiFi in work and on other networks when travelling. However, some other networks are now starting to fail. Can anyone suggets how I can fix it, as the MBP appears to be fine, its updated with all the latest versions of software and the WiFi network is also fine....just not with my MBP??

  • Can I have the warrinaty of IPHONE 4S in other countries?

    Can I have the warrinaty of IPHONE 4S in other countries?

    The warranty of the iPhone 4S is valid only in the country of purchase.  The EU is considered to be one "country" for the purposed of the warranty.  It is NOT a global warranty.

  • How can i unlock the service with AT&T or other carrier? when i was in overseas ?how much does it cost to unlock?

    how can i unlock the service with AT&T or other carrier? when i was in overseas ?how much does it cost to unlock?

    The only way to unlock a locked device is through the carrier. If it is locked to AT&T, you will have to contact them to get it unlocked.
    Cheers,
    GB

  • How can I make the playback buttons of YouTube and other plug-ins bigger since they are so tiny?

    How can I make the playback buttons of YouTube and other plug-ins bigger since they are so tiny in Firefox? I tried some suggestions that dealt with entering "about:config" in a fresh browser, but to no avail. I also downloaded an add-on called "Theme Font & Size Changer", but that didn't work either. So, I am reaching out here as that was a suggestion that another user here offered.

    Ah, yes- that is an ultra high DPI (dots per inch) display. This is a known issue in Flash Player, which Adobe is working on fixing.
    In the mean time, you can get some videos to have normal-sized controls by switching Youtube to the HTML5 video player:
    In Firefox, go to https://www.youtube.com/html5 and click the "Request the HTML5 player" button.

  • HT4095 I rented a movie from the iTunes Store and the download failed. I can't restart the download without error or rent other movies?  Anyone have this problem and found a solution?

    I rented a movie from the iTunes Store and the download failed. I can't restart the download without error or rent other movies?  Anyone have this problem and found a solution?

    1. Sign out of your Apple ID
    2. Reboot iPad
    3. Sign back in to Apple ID

  • HT201304 How can i lock the General or setting to prevent other people open it?

    How can i lock the General or setting to prevent other people open it?

    Leliforever, cheek you list of installed add-ons, the Ask toolbar can be installed without the users knowledge.
    For checking other extensions that may cause this, follow the procedure in this link - https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • How can I mail the Job Log in the form of an excel sheet?

    Daily I have to monitor a Job and I have to retrieve the Job Log in an excel sheet, Format the excel sheet, and then mail the excel sheet and the Job Status(Finished/Cancelled) to Client/Person Incharge.
    I want to automate this entire process. Please guide me, how can I write a program that mails the Job Log, in the form of an excel sheet, to the Client?
    Edited by: Jiten Rajendra Barai on Nov 25, 2008 3:03 PM

    Hi,
    You can use this FM to mail the excel sheet.
    SO_NEW_DOCUMENT_ATT_SEND_API1
    Also have a look at the below thread, it might be very helpful.
    Sending Excel attachment in E-mail
    Cheers...

Maybe you are looking for

  • How do you change the date of the photo?

    How do you change the date of the photo? 

  • Aperture Does Not Import Videos using IMPORT FOLDER AS PROJECTS

    SOLVED - Aperture 3.2.1 does not import videos using "Import Folder as Project" After 2 days of trying to figure this out (actually around 2 hours total) I've finally managed to import all my photos & videos last year. 200 Gigs 54,000 files. First fe

  • Warning/Caution symbol in lower left corner!! Help!!!

    Ok, I just started using this software recently for a school project. After shooting the video I overcame the obstacles of importing the video. All of my videos are saved in DV format. After uploading the video and doing a lot of work arranging clips

  • Programmatically assigning Authorization Objects to roles

    Hi there, I have created an authorisation object with eight fields. The fields control which parts of my application are accessible to the user. (Each field is one category, each category has several subcategories). What I want to do is the following

  • Error with inner Classes

    I've a Swing app in wich I've the following code : final ComboBoxEditor editor = comboBox.getEditor(); editor.getEditorComponent().addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(KeyEvent e) { combo_keyReleased(e,editor); Run