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 7 of 7

Thread: regarding threads

  1. #1
    Member
    Join Date
    Oct 2013
    Location
    india
    Posts
    31
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default regarding threads

    what is the use of threads in realtime applications and please infirm me any example


  2. #2
    Member andbin's Avatar
    Join Date
    Dec 2013
    Location
    Italy
    Posts
    443
    Thanks
    4
    Thanked 122 Times in 114 Posts

    Default Re: regarding threads

    Quote Originally Posted by chinnu&manu View Post
    what is the use of threads in realtime applications and please infirm me any example
    Threads, by itself, have nothing to do with "realtime" applications. Said in another way, a realtime system/application doesn't necessarily imply or require multi-threading.

    The concept of "realtime" is very specific and I suspect you should understand it better. In a realtime system/application there are very strict requirements about response times. Things must happen at a precise times. For example, when there is an external event, the system/application must respond within a precise number eg. of milliseconds.

    These things cannot be easily and precisely done with Java, since there are many aspects (JIT, garbage collection, system load, etc) that can't be controlled or limited. So for my knowledge/opinion (I never developed "realtime" applications), Java is not normally used to develop "realtime" applications.
    Andrea, www.andbin.netSCJP 5 (91%) – SCWCD 5 (94%)

    Useful links for Java beginnersMy new project Java Examples on Google Code

  3. The Following User Says Thank You to andbin For This Useful Post:

    chinnu&manu (December 6th, 2013)

  4. #3
    Member
    Join Date
    Oct 2013
    Location
    india
    Posts
    31
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: regarding threads

    thanks
    i am expecting a real time program ...please any one find the program intimate me

  5. #4
    Member andbin's Avatar
    Join Date
    Dec 2013
    Location
    Italy
    Posts
    443
    Thanks
    4
    Thanked 122 Times in 114 Posts

    Default Re: regarding threads

    Quote Originally Posted by chinnu&manu View Post
    i am expecting a real time program
    Please, clarify what type of application you would like to develop, what does it do in general, what(/where) are inputs/outputs, etc..
    Without these informations it's very difficult to continue this question.
    Andrea, www.andbin.netSCJP 5 (91%) – SCWCD 5 (94%)

    Useful links for Java beginnersMy new project Java Examples on Google Code

  6. #5
    Member
    Join Date
    Oct 2013
    Location
    india
    Posts
    31
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: regarding threads

    i want execute 5 events that 5 events i have to place in a queue...
    then this will be picked by a program based on the priority
    like....
    i want to do two operations 2nd one is depends on first one output
    so in this case thread should execute 1st operation

  7. #6
    Member andbin's Avatar
    Join Date
    Dec 2013
    Location
    Italy
    Posts
    443
    Thanks
    4
    Thanked 122 Times in 114 Posts

    Default Re: regarding threads

    Quote Originally Posted by chinnu&manu View Post
    i want execute 5 events that 5 events i have to place in a queue...
    then this will be picked by a program based on the priority
    like....
    i want to do two operations 2nd one is depends on first one output
    so in this case thread should execute 1st operation
    Firstly, this (as you have explained) has nothing to do with "realtime". You have not told about precise timings, response times and so on.

    Secondly, this is a "normal" question about tasks execution. And the fact that one task depends on the output of another does not necessarily imply multi-threading.
    Andrea, www.andbin.netSCJP 5 (91%) – SCWCD 5 (94%)

    Useful links for Java beginnersMy new project Java Examples on Google Code

  8. #7
    Member
    Join Date
    Oct 2013
    Location
    india
    Posts
    31
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: regarding threads

    ok thanks....

Similar Threads

  1. Threads
    By RABNAWAZ in forum What's Wrong With My Code?
    Replies: 2
    Last Post: August 17th, 2013, 12:56 PM
  2. threads
    By peter_parker in forum Java Theory & Questions
    Replies: 3
    Last Post: April 1st, 2013, 01:49 PM
  3. Socket Threads
    By jtseaman85 in forum Threads
    Replies: 2
    Last Post: September 15th, 2011, 12:24 AM
  4. Threads in some order...
    By aps135 in forum Threads
    Replies: 6
    Last Post: March 11th, 2011, 05:54 PM
  5. threads
    By crazed8s in forum Threads
    Replies: 2
    Last Post: December 14th, 2010, 05:33 AM