Results 1 to 2 of 2
  1. #1
    jyotigupta6 is offline Member
    Join Date
    Oct 2008
    Rep Power

    Default Threads execution stop

    related to Threads
    Hi All

    I want to stop my threads invokation.

    My code is like this -

    public void run(){
    strClobOutput = extract(strqueue,iPartitionSize);
    System.out.println("strClobOutput :" + strClobOutput);

    I am getting counts as global variable from a table.

    public String extract(String strQueue, int iPartition) {
    iRecordsCount = cs_extraction_sp.getInt(4);

    I want to check if iRecordsCount = 0, then stop executing extractor.

    please suggest me on this.


  2. #2
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Rep Power


    public void run()
    while(cs_extraction_sp.getInt(iRecordsCount) > 0){}

    We are lacking enough detail to provide a correct response, the above may suggest an avenue of design but is incomplete due to not having enough code to work from.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

Similar Threads

  1. how to stop a thread
    By willemjav in forum Advanced Java
    Replies: 19
    Last Post: 09-10-2008, 07:11 AM
  2. How to stop entering Data
    By adeeb in forum AWT / Swing
    Replies: 1
    Last Post: 06-07-2008, 02:58 AM
  3. The safe way to stop a thread
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-09-2008, 06:31 PM
  4. slow execution and flickery graphics. too many threads?
    By lost_in_java in forum Threads and Synchronization
    Replies: 0
    Last Post: 01-23-2008, 02:26 AM
  5. stop button in the browser
    By Peter in forum Java Servlet
    Replies: 2
    Last Post: 07-04-2007, 07:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts