Sun unveils first real-time Java implementation

Daily Newsletters

Sign up to ZDNet UK's daily newsletter.

Topics

RTSJ, Java, Real-time

NEWS

Sun on Tuesday released its first Java platform that offers real-time capabilities. The platform, Java Real-Time System 1.0, implements the Real-time Specification for Java (RTSJ), a blueprint for how Java can be extended to support real-time application programming.

Real-time systems are those where the application logic must meet temporal conditions, resulting in predictable application behaviour.

Devices such as mobile phones often contain a combination of real-time, non real-time, and "soft real-time" software — where logic sometimes meets temporal conditions. These different software types are often run on separate processors and operating systems. This separation results in a distributed computing model within the phone and developers have to write complex code to communicate between the different types of applications, according to Greg Bollella, a distinguished engineer at Sun. This code complexity raises the costs of manufacturing a new phone, he said.

"When a cell phone manufacturer decides to bring out a new model, what do you think their software engineering budget is for that project? The number will probably shock most of you. They say it's 2000 programmer years — that's what the budget is for developing, testing and shipping software in a new phone," said Bollella, speaking at a session on real-time computing at the JavaOne conference on Tuesday.

Mobile phone manufacturers are keen to merge the real and non-real time systems to cut costs and complexity. Bollella claimed that a beta version of the real-time Java implementation has already been used by some device manufacturers, who are happy with the results.

"We are working with some companies and they really like it — they can hide the complexity of processors and have a single development platform where they can do non real-time, soft and hard real-time stuff all in a single node," said Bollella.

Bollella said Java Real-Time System 1.0 is an exciting development within the real-time computing space, but that knowledge about real-time systems within the technology industry is still limited.

"With distributed real-time systems, we're not quite there yet. RTSJ is not the silver bullet, but is a little sharper tool that builders of real-time systems can use," said Bollella.

The real-time Java implementation is "still Java", according to Bollella, but limits developers to using a subset of the Java language. For example, developers must directly manage memory, rather than relying on Java's automatic memory creation and garbage collection. The real-time implementation also properly implements thread scheduling, unlike the standard version of Java, he said.

The JLS [Java Language Specification] says there are 10 thread priorities, but doesn't say that priorities actually work — it says they might work. RTSJ says priorities have to work and here's how they work," said Bollella.

One disadvantage of writing both real-time and non real-time code using the same platform is that the performance of the code is likely to decrease.

"You expect to lose some [performance]. If you take a specification JVM you will get about 15 percent degradation for non-real time code. But, normally in our [the real-time] community we figure about 20 percent throughput loss is acceptable," said Bollella.

Post your comment

In order to post a comment you need to be registered and logged in.

You can also log in with Facebook. Log in or create your ZDNet UK account below

  • Login

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Community FAQ

Get ZDNet UK's daily newsletter

Enter your email address to sign up

ZDNet UK Live

fgvrg56

Unfortunately main issue is that ASUS is refusing to accept that they make some mistake on this version of asus Transformer prime. 1 - GPS sensor...

1 hour ago by fgvrg56 on Asus Eee Pad Transformer Prime Wi-Fi & GPS problems?
Ben Woods

@Marcus A fair question. Just talked with Archos which said it was working on an announcement for next week....

2 hours ago by Ben Woods on Archos confirms G9 Ice Cream Sandwich update schedule
Marcus Karlsson

Any update on this, considering the claimed "first week of February"?

3 hours ago by Marcus Karlsson via Facebook on Archos confirms G9 Ice Cream Sandwich update schedule
apexwm

Bill Goodrich : Just as al_langevin pointed out, with Windows Server 2008 there is no Services for Macintosh anymore. It's gone, not available....

12 hours ago by apexwm on Windows Server 2008 drops the ball for Mac compatibility
txtrainguy

Replying to an old topic that I'm currently facing with my CEO (who is on a Mac). Our servers are primarily Windows Servers, office is about...

18 hours ago by txtrainguy on Windows Server 2008 drops the ball for Mac compatibility
k0tcs3

Sure, that makes perfect sense. Pay wrong-doers money and thank them for breaching your security and pointing out your flaws, that would surely...

18 hours ago by k0tcs3 on US indicts Romanian over NASA climate change hack
Random_Error

I think he's referring specifically to Android apps, as Apple do regulate their App Store, but Google seem to let any old crap onto the Android store!

19 hours ago by Random_Error on RIM: BlackBerry will keep 'garbage' apps out of store
Paul Fezziwig

Keep the crap apps out?! How will they compete with Android and Apple's claim to fame of having so many life changing apps? I wonder if the media...

24 hours ago by Paul Fezziwig via Facebook on RIM: BlackBerry will keep 'garbage' apps out of store
Aigars Mahinovs

It has been shown time after time that if there is an author store that sells the songs at even 1$ per song and gives you a high-quality digital...

1 day ago by Aigars Mahinovs via Facebook on Copyright isn't working, says European Commission
awbMaven

""As a result of Butyka's alleged conduct, researchers were unable to use the computers for more than two months while NASA removed the malicious...

1 day ago by awbMaven on US indicts Romanian over NASA climate change hack
subhorup

It simultaneously worries me and uplifts me that a self-proclaimed group of internet activists name themselves after Indian mythical figures....

1 day ago by subhorup on Anonymous activists release PCAnywhere source code
naviathan

It's actually far easier to work anonymously on the internet than you think. With tools like Tor bouncing your traffic around the world before...

2 days ago by naviathan on Anonymous activists release PCAnywhere source code
Agnostic_OS

1000272134 and bluedalmatian with you both there but then I'm still in 10.04 land (and happy with it)

2 days ago by Agnostic_OS on Ten factors that make Ubuntu 11.10 a hit
apexwm

Interesting article and definitely see your points on the products mentioned. One of the top products for our Help Desk (approximately 20% of all...

2 days ago by apexwm on Ten flawed products that derail productivity
Paul Hutchinson

Absolutely - this should obviously not be handled my isp - but handled by their hosting operator. What's been suggested here is that my isp police...

2 days ago by Paul Hutchinson via Facebook on MPs urge ISPs to take down terrorist material
Techs UK

Looks like a great phone. I don't notice any deficiencies in WP7. used IOS before, that's pretty good. I don't spend much time in Apps, all i need...

2 days ago by Techs UK on Nokia pins US 're-entry' hopes on Lumia 900
Larry Bloggy

Now with the help of these apps you are always synced with MS outlook while on the move. Just download apps like xobni or outlookreflex and get...

2 days ago by Larry Bloggy via Facebook on Outlook Social Connector beta 2 and the LinkedIn connector
mike40g123

Your details are wrong. The version currently being made is the one with 2 USB ports, 256MB RAM and a network port. This is the Model B. The...

2 days ago by mike40g123 on Raspberry Pi boards set to go on sale
Moley

The thing that has been puzzling me for quite a while is how Anonymous can remain anonymous whilst not only being active on the Internet but also...

3 days ago by Moley on Anonymous activists release PCAnywhere source code
Don Dilly

If what Semantec is saying is rue, that is even worse and shows a complete disregard for thier users. If what Anonymous claims is true and the...

3 days ago by Don Dilly via Facebook on Anonymous activists release PCAnywhere source code

Latest in Application Development