Slashdot Mirror


Juggling Molecules with Linux

An anonymous reader writes "This article at LinuxDevices.com describes an interesting project at the University of Vermont in which researchers use real-time Linux to build a laser trap that manipulates individual molecules by means of a computer-controlled laser beam. The project makes use of RTLinux, a real-time enhanced version of Linux that allows the system to process interrupts every 50 microsecond, sample new data, and timeshare the laser beam position. 'If the computer failed to respond, for even a millisecond, then we would drop the balls,' explained one of the researchers. Gives a whole new meaning to BSOD, eh?"

111 comments

  1. Why do we have this statement? by bogaboga · · Score: 1
    [...] Gives a whole new meaning to BSOD, eh?

    I do not see why.

    1. Re:Why do we have this statement? by Changa_MC · · Score: 1

      Well, is it a blue laser?

      --
      Changa hates change.
    2. Re:Why do we have this statement? by TripMaster+Monkey · · Score: 3, Funny


      Because this is Slashdot.

      The slam on Microsoft is compulsory.

      --
      ____

      ~ |rip/\/\aster /\/\onkey

    3. Re:Why do we have this statement? by PopeAlien · · Score: 4, Funny

      yes, and TFA is wrong they're actually using MS Linux which includes the BSOD feature. Also all the operators are clad in blue body paint and if the molecule is dropped a huge blue screen falls from the sky and crushes them to death.

    4. Re:Why do we have this statement? by MarkByers · · Score: 2, Insightful

      I don't think it's paticularly a 'slam on Microsoft'. Imagine if the system crashed while a moecule was half-constructed and you had to reboot and start all over. Use the right tool for the right job.

      There's nothing wrong with Windows as a games machine and for light word processing, but it's not suitable for everything. Maybe the submitter could have expressed themselves better.

      --
      I'll probably be modded down for this...
    5. Re:Why do we have this statement? by Anonymous Coward · · Score: 0

      Simple. The molecules that they're moving around are made of jumbonium, an element so heavy that one nanogram of it weighs a hundred million tons.

      Don't want to drop it. :)

    6. Re:Why do we have this statement? by aardwolf64 · · Score: 1

      Yes, but what on earth does Microsoft have to do with this story? TFA doesn't even mention Microsoft... The commenter you replied to had it right. This is Slashdot, so any bashing of Microsoft in your post submission increases the chance that it will be posted.

    7. Re:Why do we have this statement? by maxwell+demon · · Score: 2, Funny

      BSOD = Ball Shouldn't Occasionally Drop. I've never seen this meaning before, so it's new. Of course it has nothing to do with Windows (you didn't think it had, did you?) ;-)

      --
      The Tao of math: The numbers you can count are not the real numbers.
    8. Re:Why do we have this statement? by bogaboga · · Score: 1
      Of course it has nothing to do with Windows (you didn't think it had, did you?) ;-)

      Of course I thought it's the infamous Windows native Blue Screen of Death! Any query among computer users on this will support me on what BSOD stands for.

    9. Re:Why do we have this statement? by monopole · · Score: 4, Informative

      If you ever had to perform real time processing using Microsoft Windows you would regard the comment as kind. Windows employs a constant blizzard of interupts which makes response times unpredictable at this scale.

      Actually the BSOD is the least of the problems, with lags and leads being the primary problem.

    10. Re:Why do we have this statement? by Mr2cents · · Score: 1

      Are you saying we Slashdotters have a reflex to bash MS even if there's no real cause? That sound almost as stupid as Clippy's nonsense! Because, you have to agree on this, Clippy is pretty stupid.

      --
      "It's too bad that stupidity isn't painful." - Anton LaVey
    11. Re:Why do we have this statement? by Anonymous Coward · · Score: 0

      obligatory dean scream
      yeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaah

    12. Re:Why do we have this statement? by Anonymous Coward · · Score: 0

      ...an element so heavy that one nanogram of it weighs a hundred million tons. wouldn't a nanogram weigh... a nanogram? :P

    13. Re:Why do we have this statement? by maxwell+demon · · Score: 2, Funny
      Of course I thought it's the infamous Windows native Blue Screen of Death!

      But that wouldn't have been a whole new meaning!
      --
      The Tao of math: The numbers you can count are not the real numbers.
    14. Re:Why do we have this statement? by Kiryat+Malachi · · Score: 1

      Of course, vanilla Linux isn't really any better at doing well-timed interrupts.

      --

      ---
      Mod me down, you fucking twits. Go ahead. I dare you.
      (I read with sigs off.)
    15. Re:Why do we have this statement? by eno2001 · · Score: 1

      You're right. It should be a kernel oops. Or more likely a nucleic oops. (Not Nukyelaeic as you "nukyelar" idiots should be saying)

      --
      -"...bad old ideas look confusingly fresh when they are packaged as technology" - Jaron Lanier (Digital Maoism on Edge.o
    16. Re:Why do we have this statement? by IRIGHTI · · Score: 1

      Not on the Sun...gram=mass ton=weight mass!=weight

  2. Finally Linux... by PlancksCnst · · Score: 2, Funny

    ...is doing something useful. Just kidding! Don't kill me. Mod Flaimbait, please

  3. Meh by Shadow+Wrought · · Score: 5, Funny

    When it's juggling a molecule, a bowling ball, and a chainsaw, then I'll be impressed;-)

    --
    If brevity is the soul of wit, then how does one explain Twitter?
    1. Re:Meh by Anonymous Coward · · Score: 0
      Dear sir,

      Your weak attempt at humor is factually inaccurate.
      It is a well-known given in the juggling trade, or "juggling" as we like to call it, that it is impossible to juggle things of widely disparate sizes. So although a bowling ball and a chainsaw are on the same order of magnitude in size & weight, obviously a single atom is not. (Of course you have to account for whether the chainsaw is running or not.)

      So, in conclusion, I would like to leave you with the following thought:

      YU0 FA1L 1T!

    2. Re:Meh by Anonymous Coward · · Score: 0

      Hell, I've seen someone juggle a bowling ball and a bowl of flour at the same time. And about three other things.

      Granted, they had m4d sk33ls. But still.

    3. Re:Meh by null+etc. · · Score: 1
      Hell, I've seen someone juggle a bowling ball and a bowl of flour at the same time. And about three other things.

      That wasn't flour, it was cocaine! Why do you think he was doing it?

  4. It's a trap! by Anonymous Coward · · Score: 0

    move the fleet away from the death star!

  5. Lunix! by Anonymous Coward · · Score: 0
    we would drop the balls

    Holding the balls. The perfect job for Lunix. It's the Lunix Gay Conspiracy all over again!

    1. Re:Lunix! by pocketfullofshells · · Score: 0, Troll

      Lunix? Sounds like a terrible disease that rots off your testicles.

    2. Re:Lunix! by Anonymous Coward · · Score: 0

      Well, in all fairness, the balls only drop if it stops responding every 50 M$ bashes.

    3. Re:Lunix! by 50000BTU_barbecue · · Score: 1

      I certainly hope not!

      --
      Mostly random stuff.
    4. Re:Lunix! by wmorrow · · Score: 1

      Reminds me of the radio sports guy describing our quarterback in last night's game: It was beuatiful, how his balls fly around the field with a tight spiral.

  6. Incomplete quote by IO+ERROR · · Score: 1
    RTLinuxPro is used to control the laser beam positions, as well as to sample the output of measuring devices. At the core of the software is a kernel-side module that interrupts every 50 microsecond, samples new data, and timeshares the laser beam position. "If the computer failed to respond, for even a millisecond, then we would 'drop' the balls," explained Warshaw, "but RTLinuxPro is rock solid."
    --
    How am I supposed to fit a pithy, relevant quote into 120 characters?
  7. Not really... by avalys · · Score: 1, Funny

    I think it gives a whole new meaning to the phrase: "don't drop the ball!"

    --
    This space intentionally left blank.
    1. Re:Not really... by TheFlamingoKing · · Score: 1

      I think it gives a whole new meaning to the phrase: "My balls just dropped!"

  8. Dr. Torvalds... by Tackhead · · Score: 2, Funny
    > This article at LinuxDevices.com describes an interesting project at the University of Vermont in which researchers use real-time Linux to build a laser trap

    Dr. Torvalds: You know, I have one simple request... and that is to have penguins with frickin' laser beams attached to their heads. Now evidently, my megaloptic Naval colleage informs me that IT'S A TRAP!

    /one ticket to hell please.

  9. Realtime Linux on the desktop. by CyricZ · · Score: 5, Interesting

    I know several researchers who have been using realtime Linux on the desktop while performing studies regarding the user experience of systems with minimal latency. Their preliminary findings are that users much prefer the instantaneous response that a realtime system offers, even if the system does not perform as well when it comes to raw data crunching. For future desktop systems, heavily multithreaded, realtime apps are the way to go.

    --
    Cyric Zndovzny at your service.
    1. Re:Realtime Linux on the desktop. by akozakie · · Score: 3, Informative

      That's also the main selling point for desktop dual-core chips - without a realtime OS the second processor keeps the GUI running smoothly even under load. I sometimes use my friend's old dual Pentium 300, and under load it actually feels marginally faster than my (way faster) single chip Athlon. If the price, noise and energy consumption weren't so high I'd buy one for home use - and dual core may be the solution to those problems (plus, dual-core notebooks are a possibility, dual-chip - hardly). I also worked with QNX - nice...

      In short - I want realtime Linux on my desktop NOW! I wish I wasn't that lazy and would actually do something about it...

    2. Re:Realtime Linux on the desktop. by Anonymous Coward · · Score: 0

      This is where highly multi threaded chips will come into play in the future. Like IBM's Cell and Sun's Niagara.

    3. Re:Realtime Linux on the desktop. by Anonymous Coward · · Score: 2, Interesting

      http://www.love-sources.org/news.php

      Linux 2.6 kernel with RT patches amongst other low-latency desktop improvements.

    4. Re:Realtime Linux on the desktop. by Anonymous Coward · · Score: 0
      . Their preliminary findings are that users much prefer the instantaneous response that a realtime system offers,

      What? Users like fast systems? What a breakthrough study!

    5. Re:Realtime Linux on the desktop. by digidave · · Score: 3, Insightful

      "What? Users like fast systems? What a breakthrough study!"

      No, it turns out that users actually prefer trading off calculation speed for a quicker GUI. So even if doing a major spreadsheet export takes a few seconds longer, it's the speed of the menu, resizing windows, etc that makes a difference to them.

      --
      The global economy is a great thing until you feel it locally.
  10. Still waiting for ... by guyfromindia · · Score: 1

    Linux based sharks with frickin' laser beams on their heads....

    1. Re:Still waiting for ... by guyfromindia · · Score: 1

      Oh! Well.. redundant... somebody beat me! :-)

    2. Re:Still waiting for ... by Anonymous Coward · · Score: 0

      I thought redundancy was a good thing?

      confuzed :0

      (& slightly bored)

    3. Re:Still waiting for ... by The_Wilschon · · Score: 1

      Linux based sharks with frickin' laser beams on their heads....

      Riding on elephants' backs! Just trampling, eating, outcomputing, and laserifying everything they see!

      --
      SIGSEGV caught, terminating

      wait... not that kind of sig.
  11. Vanilla & Chocolate by pcnetworx1 · · Score: 0
    From the article: Graphical user interfaces, mouse driven operator interfaces, and data storage are all "vanilla" Linux applications. The laser control program, by contrast, is a relatively straightforward piece of code that collects positioning data and adjusts the laser.

    So I guess the laser juggler program would be a "chocolate" Linux application. Mmmm

  12. DOS by goombah99 · · Score: 1

    Why not just use DOS or mac OS 8. Seriously. For instrument control you want your program running and screw everything else. Modern OS are the bane of instrument control, even so-called RT systems. They just seem to go out to lunch every now and then.

    --
    Some drink at the fountain of knowledge. Others just gargle.
    1. Re:DOS by over_exposed · · Score: 1

      If you had read the summary you would have answered your own question. RT linux handles interrupts much faster than any other OS. If they lose control of the laser, they have to start over.

      --
      "The object of war is not to die for your country, but to make the other bastard die for his." - Patton
    2. Re:DOS by Anonymous Coward · · Score: 0

      And if you understood goombah's post, you'd shut your useless yap when you have nothing to contribute.

    3. Re:DOS by RWerp · · Score: 1

      I know that many people who program computers to run their laboratory hardware do it with DOS. It's easy and efficient. I imagine these guys had a reason to switch to Linux, maybe the efficiency was too low or they needed modern development tools.

      --
      "Long run is a misleading guide to current affairs. In the long run we are all dead." (John Maynard Keynes)
  13. Victor Yodaiken if a Patenting Pest by Anonymous Coward · · Score: 2, Informative

    Victor Yodaiken (who wrote TFA) is the clown who patented his technique for implementing RTLinux. I much prefer RTAI for real-time linux, both because it is IMO a superior implementation, a better license, and it doesn't give support or credibility to Yodaiken.

    1. Re:Victor Yodaiken if a Patenting Pest by Anonymous Coward · · Score: 0

      RTAI (1) has had and maybe still contains code copied from RTLinux without "appropriate copyright" which is a GPL violation, (2) licenses depend on whether the people who provide them have authority to provide them.

  14. rtlinux by w98 · · Score: 1

    huh, another contender ... I'll have to check it out. I used to work at QNX who also make a real-time posix-compliant OS, but it's geared more for embedded systems than desktop use (although it *can* be used on a desktop)

  15. Laser Traps by richardmilhousnixon · · Score: 4, Interesting

    I was under the impression that the whole idea of a laser trap is that you CAN'T drop the ball. Small particles get trapped in the beam due to photon pressure, if the particle shifts away from the center of the beam, it automatically is recentered. Then you can move the beam to manipulate the particle which is attached to a molecule. They use these to fold and unfold proteins, lipid layers, DNA, etc.

    I mean, it's great that they're using a realtime kernel, but they really shouldn't NEED it.

    --
    -- sometimes AND gates turn me on.
    1. Re:Laser Traps by imsabbel · · Score: 1

      Its not that easy.
      Just for your information: the classical picture of a laser trap always presented actually is only a so called optical molasse, it will slow down molecules, but cannot trap them. (its actually quite obvious, think about the balance of force on the particle as its speed aproaches 0... it can be descriped by a modification of the stokes formula for objects in fluids)
      For real confinement, you need futher stuff, for example quadrupol coils for a penning type trap, ect.
      I dont know what exactly they have working, but its quite possible that they have some kind of feedback loop for their coil management or something like that...

      --
      HI O WISE PRINCE. WHT TOOK U SO DAM LONG?
    2. Re:Laser Traps by Phanatic1a · · Score: 1

      ObRTFA: RTFA.

      They're timeslicing, using one laser to build multiple traps. So they trap one sphere, then switch to another, then back to the first before it drops.

    3. Re:Laser Traps by ZagNuts · · Score: 2, Informative

      I was under the impression that the whole idea of a laser trap is that you CAN'T drop the ball. Small particles get trapped in the beam due to photon pressure, if the particle shifts away from the center of the beam, it automatically is recentered. Then you can move the beam to manipulate the particle which is attached to a molecule. They use these to fold and unfold proteins, lipid layers, DNA, etc. I mean, it's great that they're using a realtime kernel, but they really shouldn't NEED it

      From the article:
      "In other experiments, researchers use the laser beam to apply minute forces to the beads and to the connected myosin molecule."

      They need real time feedback in order to compensate for motion caused by applied forces that might push the molecule out of the focal point of the laser.

      They may also be using realtime feedback to continually focus the laser since very small variations can cause changes large enough to drop the molecule (although I believe many of these systems use purely electronic/optical means to do this).

    4. Re:Laser Traps by kccricket · · Score: 2, Funny

      I dunno. I think they'd get better results if they reversed the polarity on their trap coil couplers.

      --
      * chirp * chirp *
  16. Mod Parent Up by MyLongNickName · · Score: 1

    +100 Insightful

    --
    See my journal for slashdot ID's by year. Mine created in 2005. http://slashdot.org/journal/289875/slashdot-ids-by-year
  17. delay tolerance? by moz25 · · Score: 1

    I've made some use of RTLinux myself - one aspect that we got to wonder about is to which extent you can move the controller outside of the computer and into its own embedded device. In this case, it seems that it's the diversity of experiments that is the deciding factor for using the computer.

    It is a little odd that they talk about 1 millisecond, when the time between interrupts is 50 microseconds. To miss for "even" 1 millisecond would mean missing 20 interrupts! That's just some hype, IMHO. What I find more interesting (but can't find in TFA) is the tolerance for delay per interrupt: if the interrupts are 50 microseconds apart on average, but sometimes 20 apart and sometimes 70, what is the result for the experiment? I think that that's where you're going to see the real test for RT Linux.

    1. Re:delay tolerance? by ClosedSource · · Score: 3, Informative

      Yes 1 millisecond is pretty slow. On the Atari 2600 we used to meet a .84 microsecond timing requirement with a 1.19 MHz processor.

      In any case I don't think many people on Slashdot understand that tough, classical real-time software can't really run on a PC (or Pentium processors for that matter) no matter what OS is used.

      The key to real-time software isn't speed, it's deterministic timing. Once you have a cache involved, it's pretty much game over. Unless, of course, your timing requirements are several orders of magnitude slower than the time it takes the processor to execute an instruction. In that case the non-deterministic behavior may be swallowed up by the large gaps between real-time events.

      Nevertheless there may still be the possiblity of memory management accessing the disk and blowing your timing away.

    2. Re:delay tolerance? by RWerp · · Score: 1

      How about turning the cache off?

      --
      "Long run is a misleading guide to current affairs. In the long run we are all dead." (John Maynard Keynes)
    3. Re:delay tolerance? by ClosedSource · · Score: 1

      If the processor cache can be turned off, then that is at least one less hurdle. What about processor pipelines, bus locking, etc.? Can they all be disabled?

      Any non-deterministic behavior (or deterministic behavior too complex to be considered in a real-time software design) will still trip you up.

  18. Woah! by Anonymous Coward · · Score: 0

    Imagine a Beowulf cluster of these things! Anyone up for some 80's style disco dancing with laser beams?

  19. Why use any OS? by cosinezero · · Score: 1

    Sooo... basically they're using an operating system to do what they should have an FPGA perform?

    I mean, rah-rah-go-linux... but sounds like a dramatic over-use of power. Why one would use a modern OS to perform tasks that should be handled by dedicated hardware ... is beyond me.

    1. Re:Why use any OS? by HermanAB · · Score: 1

      'Cause its cheaper, 'cause its fun, 'cause they have a shed load of forlorn PCs doing something unspeakable in a dark corner of the lab...

      --
      Oh well, what the hell...
    2. Re:Why use any OS? by Anonymous Coward · · Score: 0

      Dude. If your software tools and existing hardware can handle the problem, why waste your time making a special purpose hardware solution (which would also be much less flexible?)

      Especially if you know how to work with software and do not know how to work with hardware.

      Software is much easier to work with and fix quickly.

    3. Re:Why use any OS? by ArsonSmith · · Score: 1

      One word

      "CASH!!"

      Software = Cheap/flexable.
      Hardware = expensive/rigid even FPPGA.

      --
      Paying taxes to buy civilization is like paying a hooker to buy love.
  20. Wrong title by Spy+der+Mann · · Score: 5, Funny

    [note to mods: If you don't get the joke you should read the other headlines on today's index]

    Should read:

    "World's fastest Linux-based laser trap" ;-)

  21. RT Linux fast enough for a juggler... by Anonymous Coward · · Score: 2, Funny

    ...but does it have enough horsepower to generate a mime trapped in a box? I doubt it.

    1. Re:RT Linux fast enough for a juggler... by RM6f9 · · Score: 1

      Next dupe/"follow-up" article on Slashdot: "RTLinux used to laser-trap mimes in boxes"
      "Finally, a valid use for Linux" a certain well-known OS development rival group was heard to say - apparently beleaguered by mimes performing outside their Redmond HQ for spare change, the possibilities of trapping mimes in boxes using lasers controlled by RTLinux has intrigued ...(read more)

      --
      Take the 90-Day Challenge! http://rwmurker.bodybyvi.com/
  22. molecule juggling available with FC3 by pomakis · · Score: 3, Funny

    Fedore Core 3 comes with an application for juggling molecules. It's called "katomic". It actually allows one to assemble molecules from its constituent atoms. The miracles of modern science never cease to amaze me.

  23. What if it crashes? by rice_burners_suck · · Score: 2, Funny
    Gives a whole new meaning to BSOD, eh?

    You want a BSOD, eh? How about this: You build a gun that has an actuator attached to the serial port of a computer running Windows NT. The computer sends, via the serial port, a watchdog-style "keep alive" signal, say, every 100 microseconds. The actuator is designed such that once powered on, if the watchdog timer skips a single beat or delivers it too late, the gun is fired.

    At this time, a volunteer (say, Gill Bates) would be tied to a chair and placed in front of this gun, while the Windows NT system runs Exchange and IIS, and while a user browses pr0n sites via Internet Explorer. This is, actually, quite a safe experiment, as we all know that Windows NT never crashes.

    1. Re:What if it crashes? by HermanAB · · Score: 1

      Some rhetorical questions: Will you use Windows to manage a heart-lung machine? No? So why do you use it to run an Aircraft Carrier? Actually, since I'm not American, I think the US military and the whole government, should use MS Windows exclusively, for everything...

      --
      Oh well, what the hell...
    2. Re:What if it crashes? by Anonymous Coward · · Score: 0

      To be a true *BSOD* wouldn't you need to get a Bolian? Or at the very least a member of the Blue Man Group/smurf?

  24. The Lunix are on the grass! by HermanAB · · Score: 3, Funny

    The lunix is on the grass
    The lunix is on the grass
    Remembering games and daisy chains and laughs
    Got to keep the lunix on the path

    -- Fink Ployd.

    --
    Oh well, what the hell...
  25. QNX - for really low latency by Animats · · Score: 4, Informative
    Here's what comparable numbers look like for QNX: QNX.

    For a 200MHz Pentium (this is an old review), the testers tried sending one billion interrupts with a latency check. When they required 8 microsecond latency, they missed one interrupt in a billion. When they only needed 10ms latency, they didn't lose any.

    Comparable figures are available for various real-time Linux systems. Note that these figures are for a 650MHz CPU. The times are slightly better than for QNX, but the CPU is 3x faster.

    Bear in mind that "RTLinux" programs aren't running under Linux. They're running below Linux. They can't make most system calls, for example. QNX programs are ordinary programs, and can make system calls.

    The Linux 2.6 kernel isn't bad, though. Running real-time with millisecond response as high-priority Linux threads can actually work in 2.6. In 2.4, no way. You have to be very careful not to load any high-latency drivers, though.

    1. Re:QNX - for really low latency by imsabbel · · Score: 2, Interesting

      One question: Typing error on your side? Do you mean 10ms or 10 us?
      Because 10ms is hardly a latency to brag about... for any os...

      --
      HI O WISE PRINCE. WHT TOOK U SO DAM LONG?
    2. Re:QNX - for really low latency by Animats · · Score: 2, Interesting

      Sorry, 10us.

    3. Re:QNX - for really low latency by brain_not_ticking · · Score: 1

      There's a HUGE difference between 8 microseconds and 10 milliseconds. Do you mean that when they only needed 10 microseconds latency, they didn't lose any?

    4. Re:QNX - for really low latency by Animats · · Score: 2, Interesting

      Yes. When they only needed 10us latency, they didn't lose any. And that was on a 200MHz CPU.

  26. heavy duty research by Anonymous Coward · · Score: 0

    "Hey Bob.. over at the University of Vermont we were able to juggle molecules with lasers! Isn't that GREAT?" "Wow, that's awesome Jim.. all my team is working on is that boring old CURE FOR CANCER. Have fun with the laser-linux circus."

  27. I juggle molecules all the time! by Anonymous Coward · · Score: 1, Funny

    I juggle molecules all the time - In fact, I never juggle anything EXCEPT molecules.

    Of course, I usually juggle lots of them at once.

  28. Not sure about this.. by Da+VinMan · · Score: 4, Interesting

    I don't dispute your friends' findings, but I'm wondering why a RT based OS would really improve the user experience?

    Here's why I ask: A RT system is typically real time for some dedicated purpose. Not all pieces of the system have to be RT; just the important bits. Now, an average user PC is NOT a specialized device at all. It can be running a number of applications and, except for cases where a given process has a higher priority, all the processes typically get an opportunity for equal time from the CPU. A desktop system with a RT OS would also fit this description too, right?

    Now, given that: where's the RT aspect in all of this? What's actually RT in this situation? The pre-emptive multitasking loop? The UI event/response loop? The IO loop (assuming you could describe it that way)? The video update loop? What about this would give the user a better experience?

    --
    Please mod this post only if you think others should/n't read this. I have enough ego^H^H^Hkarma. Thanks!
    1. Re:Not sure about this.. by ClosedSource · · Score: 1

      I think people are confusing real-time with "as fast as a bunny".

      A truly real-time system can actually be slower because even if it's ready to respond, it still has to wait until the appropriate time to do so. It like batting in baseball: swinging too early is just as bad as swinging too late.

    2. Re:Not sure about this.. by BGA · · Score: 2, Insightful

      Being RT means it has predictable response times. If some specific operation is said to take 10 ms to complete you can count that as being always true and this is what makes RT systems special. That's why it would be *VERY* difficult to have a "partial" RT system like what you decribe. Either it is RT or it is not.

      That said, recently we had some flexibility on the Rt definition and we ended up with definitions for systems that are "hard RT" and "soft RT". The first case is what I described (QNX is hard RT, for instance). The second one is a system that provides extremelly low latency times but they are not really predictable, although the average time is (BeOS - now Zeta - is said to be soft RT).

    3. Re:Not sure about this.. by Dan+D. · · Score: 1
      the UI event loop. On the process in focus (or wherever the mouse goes so that when you click there is zero perceived time between when you clicked and when the action takes effect.)

      For everything else, standard latencies are more than enough (like if you're watching a video in a window in the upper right corner, that's probably not going to skip just because the UI event loop is kicking in, and if it did the user still prefers to get the fast action response because that's where his/her attention is.)

      --
      People who quote themselves bug the crap out of me -- Me.
    4. Re:Not sure about this.. by Anonymous Coward · · Score: 0

      Well, the amiga UI always had instant visual feedback. That was most important, to prevent users hammer-clicking. A button IMMEDIATELY (well next 1/50th sec frame update) became "pressed", and stayed pressed until the action it initiated completed or failed.) EVERY OTHER GUI IN THE WORLD I'VE EVER SEEN gets this wrong.

    5. Re:Not sure about this.. by Kafteinn · · Score: 1

      If it is possible I would love to be able to somehow choose which parts of the OS have RT priority. So I could for example choose to only give the parallel port or specific applications RT priority and control servo motors on my desktop, make a crude oscilloscope or Real Time Halflife :) does anyone know if this is possible?

      --
      Hitler's in the fridge.
    6. Re:Not sure about this.. by Anonymous Coward · · Score: 0

      renice -20 12345

    7. Re:Not sure about this.. by Da+VinMan · · Score: 1

      I agree completely with your definition of a a real-time system. What I was trying to say is that a general purpose system can not, by definition, be real time about everything it does. Therefore, it would have to be real-time about some specific characteristic(s), and the rest of the system's performance would have to vary as needed in order to meet the actual RT requirements.

      --
      Please mod this post only if you think others should/n't read this. I have enough ego^H^H^Hkarma. Thanks!
  29. Rah Rah by Anonymous Coward · · Score: 0

    Is Slashdot nothing but a Rah Rah site for Linux then? They could have just as easily used QNX, Windows CE or even Embedded XP.

    Yes, CE has very good real-time response.

    Read, if you dare:
    http://www.windowsfordevices.com/articles/AT676103 9286.html

    And QNX kicks RTLinux ass in almost every respect for this type of work. In short, the people that chose to use RTLinux were probbly just idiots that didn't know any better :(

    1. Re:Rah Rah by Anonymous Coward · · Score: 0

      QNX was considered for this application, but the first tests were done with Linux since that's what I played with most of the time. The test box was an old generic P166 built from scrap parts in the lab. I just flipped lines on the 8255 and followed them with a scope.

      As it happened, the support of common hardware and the video4linux interface in particular made Linux a better choice. I received a Hauppage card for Christmas in `97 or `98 (which I still use for my TV) and had the lab purchase one after I realized its potential. The microscope output is visualized by means of an NTSC signal piped into the brooktree 878 and mapped directly over the PCI bus to the frame buffer of the video card. There is no (or very little) CPU diverted to this application, I'm not sure QNX has support for this cheap (~$50) consumer-grade hardware.

      The options for Win32 were not seriously considered after preliminary testing and subsequent research showed that NT4 was not suitable for real time control (see presentation below for those data). If I recall correctly, I did look at a RTOS wedge for NT4 that was similar in concept to RT-Linux, but it cost ~$30k for the developers' kit. That was around my yearly salary at the time, now, I make 2/3 of that hefty sum (I'm a graduate student).

      I was rather used to coding with MFC at the time, so Windows would have been nice from that perspective. In the course of this work I discovered FLTK, and that is what I've used for GUIs ever since (though I'll admit that I do little in C++ anymore, most of my hacking is now done with Python).

      For those wondering why we didn't use a DSP or FPGA, please note that this project was started in 1997. At the time the best (only?) implementation of this technique was done with a custom circuit board by Justin Molloy. If I were to handle this task now, I would likely follow the design of William Guilford and use a DSP. (Both Justin and Bill did their post-doctoral training in our department.)

      As I've posted elsewhere in this thread, more of the technical details of this application are at

      http://www.uvm.edu/~dgaffney/bmes99/

      Regards,
      Don (dpg2)

  30. Juggling molecules eh? by mrjb · · Score: 1

    ...and the article is written by Victor YODAiken. Coincidence? I think not...

    --
    Visit http://ringbreak.dnd.utwente.nl/~mrjb/growingbettersoftware to download your free copy of the book
  31. Random Amiga sour-grapes by Jhan · · Score: 1

    The Amiga had CPU clock-cycle-precise interrupts. IE, the very slowest 1985 Amigas (A1000) could throw interrupts every 1/7.16MHz seconds, or about 140 nanoseconds. 2005 Linux has an interrupt precision of 50 microseconds.

    Way to go, RTLinux! You are now only 2800 times slower than a 20 year old box. Not that any other system is better...

    --

    I choose to remain celibate, like my father and his father before him.

    1. Re:Random Amiga sour-grapes by RWerp · · Score: 1

      The slowest (and the oldest) Amigas were A500, not A1000. How accurate was the CPU clock?

      --
      "Long run is a misleading guide to current affairs. In the long run we are all dead." (John Maynard Keynes)
  32. Obligatory Doc. Evil ref by hal200 · · Score: 1

    Bah! Come back to me when you can do it with sharks with frickin' lasers on their heads!

    --

    I just want to take over the world...Why does that automatically make me EVIL?

  33. Microsoft oppose Linux by MarkByers · · Score: 1

    I think he was trying to say to the Slashdot audience, 'Stop saying Microsoft is x times better than Linux and therefore Linux should die. Look here! Here's something that we need Linux for, we could not have done this with Microsoft.'

    In other words, it is good that Linux exists for specialist projects and any attempt to ban Linux (eg. by patenting algorithms used in the Linux kernel and making it illegal to distribute) would have harmful effects on society, making these sort of experiments much more difficult/impossible.

    Allow alternatives to Microsoft exist. Oppose efforts to make Linux illegal (via software patents for example). Do this even if you think personally Linux sucks. Other people will thank you.

    --
    I'll probably be modded down for this...
  34. Tetris with micro beads. by ezzzD55J · · Score: 2, Interesting

    A friend of mine implemented tetris using a laser to trap 1 mirometre glass beads. Short story + picture + video here. More explanation here.

  35. YOU ARE WRONG by Anonymous Coward · · Score: 0

    The A1000 came before the A500. They both had the 7.something MHz clock.

  36. Foreget Linux, Lets Hear it for Physics! by frenchs · · Score: 3, Interesting

    How interesting. I just saw a lecture by one of the men that won a nobel prize for this very thing, Steven Chu. What is being done here is essentially what is called Optical Tweezers.

    The way this works is that the laser is fired, in timed pulses at a molecule. When the laser hits it from an opposing direction, it starts to cancel out the kinetic energy that the molecule has, and therefore cooling it. (I think it was something to the order of 2.0 × 10^-06 degrees above absolute zero).

    In a nutshell, this is what is going on:
    Almost Absolute Zero == Essentially No Movement == Essentially "Frozen" Object

    -Steve
  37. Still not modded down? by Enoch+Lockwood · · Score: 1
    Uh. "Lunix"?

    Are you sure you're on the right site, buddy?

  38. For stories, Yes. For comments, No by Anonymous Coward · · Score: 0

    It is the way of the Slashdot.

  39. Welcome to our reality by ClosedSource · · Score: 1

    Is it really true in your reality that Slashdotters say that "Microsoft is x times better than Linux"? Or is x less than 1?

    1. Re:Welcome to our reality by MarkByers · · Score: 1

      I think you will find that the majority of Slashdotters are actually Windows users and many of them do actually believe that.

      Please tell me, what's your reality like? ;)

      --
      I'll probably be modded down for this...
    2. Re:Welcome to our reality by ClosedSource · · Score: 1

      There's a big difference between using Windows and believing that it's better than Linux. If a majority of Slasdotters do believe that, they must be the ones who don't post or moderate (with a few exceptions).

      Try this experiment: Make a mild comment about Windows being better than Linux. Then a few days later post the exact same comment with the words Linux and Windows swapped. See which comment is modded as Flamebait or Troll and which is modded Insightful or Informative.

  40. quote taken out of context.. by Daktaklakpak · · Score: 1

    If the computer failed to respond, for even a millisecond, then we would drop the balls...

    Not a very patient porn-surfer, are we? :)

  41. Re: Your sig by some+guy+I+know · · Score: 1
    After they make styrofoam, what do they ship it in?
    Tiffany lampshades and Faberge eggs.
    --
    Those who sacrifice security to condemn liberty deserve to repeat history or something. - Benjamin Santayana
  42. Details of UVM Laser Trap Code by Anonymous Coward · · Score: 0
    Hello Slashdotters!

    I'm the chemist turned admin turned programmer turned biophysicist that started the 'alpha' project in the Warshaw lab.

    If hankering for more details see:

    http://www.uvm.edu/~dgaffney/bmes99/

    This trap is now more than 6 years old. We're still doing cool stuff though (oooh, aaah, pretty quantum dots), so if you're interested in how your body converts chemical energy into mechanical work, see the department home page:
    http://physioweb.med.uvm.edu/
    Join us as a technician, graduate student or post-doc. Burlington is a great town, and the department is the best muscle research center on the planet.

    Regards,
    Don (dpg2)

    P.S. - please do have a look at the first site above; MGA, our fanastic CIT sysadmin would love a "slashdot-effect" story to share with his friends.