what is the use of threads in realtime applications and please infirm me any example
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.
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.net — SCJP 5 (91%) – SCWCD 5 (94%)
Useful links for Java beginners – My new project Java Examples on Google Code
chinnu&manu (December 6th, 2013)
thanks
i am expecting a real time program ...please any one find the program intimate me
Andrea, www.andbin.net — SCJP 5 (91%) – SCWCD 5 (94%)
Useful links for Java beginners – My new project Java Examples on Google Code
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.net — SCJP 5 (91%) – SCWCD 5 (94%)
Useful links for Java beginners – My new project Java Examples on Google Code
ok thanks....