Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

Java to be -- or not to be -- on the BeOS

Be Inc. has produced a fast, clean, and robust modern operating system with features that should interest Java developers -- the question is, where <em>is</em> the support for Java?

  • Digg
  • Reddit
  • SlashDot
  • Stumble
  • del.icio.us
  • Technorati
  • dzone
At the Be Developers' Conference (BeDC) last March, Be Inc. distributed its Be Operating System (BeOS) Release 3. This release marked several firsts for the young company. For one, this was the first release that was not preceded by either a "Developers Release" or "Preview Release" label. And this was the first release targeting Intel machines. Although previous releases have worked on Power Macintoshes, the Power Mac version of Release 3 wasn't quite ready in time for the March BeDC.

Last August, at MacWorld Expo in Boston, Be's chairman and CEO Jean-Louis Gassée was busy showing off Preview Release 2 of the BeOS. I asked if he could briefly explain why Java developers should be interested in the BeOS. Gassée smiled and said "M-P-M-T -- multiprocessor, multithreading."

The multiprocessor aspect of the BeOS provides a demonstrable increase in speed. Plus, users don't have to wait until applications are written that take advantage of the additional processors -- that job is left to the BeOS. As Be engineer William Adams explained to developers, "You don't really care how many CPUs are in the machine, and you don't have to; you furthermore don't have to do anything special to deal with extra CPUs. Your job is essentially to reinvent your application in a very multithreaded way. Our job is to make it run efficiently."

The BeOS Intel release can be installed on single or multiple-processor Pentium II machines. The Pulse application gives a graphical display of processor activity, so on a multiple-processor machine you can watch how the OS balances the processors. The Pulse application also allows you to turn the various processors on and off. You can observe the difference in speed as you disable the processors one at a time. Actually, the controls used to allow you to turn off all of the processors. Not surprisingly, users who selected this option noticed a dramatic drop in performance. (It's like allowing a pilot to turn off all the engines in an aircraft.) Be engineers were surprised by the number of users who went so far as to turn off the last processor. Needless to say, that option has been removed.

The promise of pervasive multithreading is appealing to Java programmers. "If you've done any BeOS programming," Adams wrote in a recent Be newsletter "you've probably been using threads whether you intended to or not."

At the March BeDC, Steve Sakoman, Be's vice president of engineering, demonstrated an application that created and destroyed sixty threads per second. Sakoman warned that he was not recommending this as a good programming technique, but that the video effects demo showed an application that "spawns two threads for each frame -- one to render effects for even scan lines, the other for odd scan lines. The two threads run to completion and die. The app waits for the next frame to arrive and repeats the process. Thus, 30 times 2 threads are created (and destroyed) each second." The multithreading news may interest Java developers, but the question is Where is Java?

  • Digg
  • Reddit
  • SlashDot
  • Stumble
  • del.icio.us
  • Technorati
  • dzone
Comment
Login
Forgot your account info?
Add comment
Anonymous comments subject to approval. Register here for member benefits.
Have a JavaWorld account? Log in here. Register now for a free account.
Resources
  • To find out more about Be, register as a developer and sign up for its weekly newsletter at http://www.be.com
  • You can purchase BeOS 3.1 at http://www.be.com/purchase/ordering/beos_order_form.html
  • If you're interested in developing for the BeOS, the Be Developer's Guide is available from O'Reilly at http://www.ora.com
  • A fund is available to help Be developers, at http://www.befund.com
  • For information about hardware you can check out http://www.intel.com or http://www.apple.com
  • Metrowerks can be found at http://www.metrowerks.com