Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: executing separate queries via threading

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default executing separate queries via threading

    I am working on a project where I've to implement thread for this task. I do not have much idea about threading.
    Please can anyone help me with this problem.

    I've to display two tables (tb1 & tb2) simultaneously from Oracle database using threading in java.
    when clicking the show button the two different select queries:
    1. select * from tb1
    2. select * from tb2
    should be executed simultaneously showing the two tables. how can I do it using threading in Java?


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,330
    Thanks
    181
    Thanked 829 Times in 772 Posts
    Blog Entries
    5

    Default Re: executing separate queries via threading


  3. #3
    Junior Member
    Join Date
    Jun 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: executing separate queries via threading

    here's a basic example in how to execute something in parallel:

    ...edited by moderator
    Last edited by copeg; June 15th, 2012 at 02:16 PM. Reason: Spoonfeeding

Similar Threads

  1. How to separate ArrayLists in memory?
    By wattieboi in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 22nd, 2011, 01:18 AM
  2. regarding nested queries in jsp
    By ravi_91 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: June 4th, 2011, 10:15 AM
  3. separate strings
    By ridg18 in forum What's Wrong With My Code?
    Replies: 10
    Last Post: January 21st, 2011, 05:22 AM
  4. Help running SQL queries in Ubuntu
    By Mic[RSA] in forum Java IDEs
    Replies: 0
    Last Post: June 29th, 2010, 12:53 PM
  5. Hey, I'm new to Java and just have a few queries
    By Pseudonym134 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: December 5th, 2009, 05:44 PM

Tags for this Thread