Berkeley CSUA MOTD:Entry 20761
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/04 [General] UID:1000 Activity:popular
4/4     

2001/3/13-14 [Computer/SW/OS/Misc, Computer/SW/OS/Windows] UID:20761 Activity:nil
3/11    What features does an OS need to qualify as a soft-realtime OS?  I
        only know that it needs to be pre-emptive.  Thanks.
        \_ Take a look at:
           http://www.faqs.org/faqs/realtime-computing/faq
2025/04/04 [General] UID:1000 Activity:popular
4/4     

You may also be interested in these entries...
2004/7/2-3 [Computer/SW/Languages/C_Cplusplus] UID:31149 Activity:moderate
7/2     Is this valid C++ code?  It works for gcc but in VxWorks the array
        is initialized to { 0, 0 }.  Just out of curiosity/bitterness.  tia.
        #define IN_Q 0
        #define OUT_Q 1
        int foo () {
          int queueTypes[] = { IN_Q, OUT_Q };
	...
2004/5/6 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Compilers] UID:30054 Activity:moderate
5/6     I'm trying to use "#define errno WSAGetLastError()" in a winsock
        file, but the compiler says errno is already #def'ed.  I can't
        just run cpp on the file--it's a crappy ide-based compiler--so
        I'd like to do something like printf("errno"), but of course that
        just prints "errno" instead of the preprocessor's notion of what
        errno is #def'ed to.  What should I do instead?
	...
2004/2/24-25 [Computer/SW/Languages/Perl] UID:12378 Activity:nil
2/23   I need to come up with some sort of scriptable solution for controlling
       various hardware-- we already have an interface that accepts
       string-based commands over a socket, but no way to control it via script
       (e.g. with variables, if/then/else/while, error recover/reporting).
       Would perl be good for this sort of thing, or are there simpler, more
       focused languages/modules available?
	...
2003/11/19-20 [Computer/SW/OS/Misc] UID:11140 Activity:low
11/19   Anybody write code (or know people who write code) that go into
        airplanes, guided missiles, or satellites, etc?  Code that just HAS
        to work 100% of the time?   I'm wondering about what kind of
        OS they use (if any) or how exactly they write such code.  Any
        documented procedure online?  Thanks.
        \_ APL and no stupid "we'll just patch it later" testing.
	...
2003/4/27-28 [Computer/SW/Languages/C_Cplusplus] UID:28238 Activity:kinda low
4/28    Too many political trolls, so here's a computer one:
        Ok... how did sodans/calgrads start up on learning COM/MFC?
        Learning things like VxWorks, RogueWave and J2EE was pretty easy
        given my Cal background, but Win32 has always eluded me. MFC looks
        big an hairy, and COM doesn't seem too much friendlier. That said,
        C# looks to be pretty easy to pick up... although I'd be more
	...
2001/3/14 [Computer/SW/OS/Misc] UID:20775 Activity:kinda low
3/13    Are VxWorks and PSOSystem related?  Or are they completely separate
        products?  Which one was the one used on the Mars Pathfinder?
        \_ VxWorks and PSOS were once separate OS and companies.  Now
           they are one.  I don't know how they are merging the two
           now...
        \_ BTW, is VxWorks hard real-time or soft real-time?  With all the
	...
2001/2/24 [Computer/SW/OS/Solaris] UID:20671 Activity:very high
2/23    I'm looking for examples of a company successfully rewriting an OS.
        Like Sun transitioned from 4.1.3 -> Solaris.  This transition has to
        happen while the company is still developing features and pushing the
        old OS.  How many times have a massive SW development effort like this
        succeeded?  Thanks.
        \_ Windows to NT.
	...
2000/4/19-20 [Computer/SW/OS/Misc, Computer/SW/Unix] UID:18060 Activity:nil
4/18    Does anyone know how to configure vxWorks to boot using bootp
        instead of ftp or rsh? URL is fine. BTW, I'm using Sol2.6/2.7
        as my bootp server.
        \_ do you just want to configure or are you a code developer?
           How about using "vwman" or read the manual?  Perhaps change
           the boot parameters too?
	...
2008/12/5-10 [Computer/SW/OS/OsX] UID:52174 Activity:kinda low
12/5    I suggest CSUA buy a Mac and run MacOS on it. Maybe run Linux in
        a VM, too. I think students will get more bang for their buck
        trying to run services on MacOS than with "Just Another Linux Box".
        \_ On what basis? We do have an AppleTV, which we've yet to hack
           so it runs full OS X, but as a OS X user myself, I don't see the
           OS being useful for useful services except if we get OS X server
	...
2007/7/17 [Computer/SW/Languages/C_Cplusplus] UID:47312 Activity:nil
7/13    CSUA Life Roster
1 point each for:                                               key:
                significant other (out of county rule applies)   G
                car (Chevy Novas do count)                       C
                housing (dorms DO NOT count)                     H
                own computer running reasonable multi-tasking OS U
	...
2007/4/13-16 [Computer/SW/WWW/Browsers] UID:46291 Activity:nil
4/13    I use IE7 to browse a web site, and the server says the UserAgent
        string is
        "UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET
        CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)"
        Is MS bowing to the Mozilla community?
        \_ What are you talking about?  IE has always reported its UserAgent
	...
2006/1/5-9 [Computer/SW/OS/Windows] UID:41250 Activity:nil
1/5     Heh.  Combining the power of Windows CE, Me and NT we have...
        Windows CEMeNT!
        http://photos1.blogger.com/blogger/5036/1165/1600/cement.0.jpg
        \_ That joke's--what--4? 5 years old?
           \_ thanks for posting; missed that 4 or 5 years ago.
	...
2005/6/27-28 [Computer/SW/OS/OsX] UID:38329 Activity:kinda low
6/27    For anyone who's owned a G5 running OS X (10.3 or 10.4), how often do
        you need to reboot if it's being used as a workstation?
        \_ Occasionally you will run into the Windows NT syndrome of the system
           needing a reboot for a system software patch - I'd say about once
           every couple of months on a stable release, and once or twice a
           month on a new one.  Other than that, I have never seen a piece of
	...
2005/6/2-3 [Computer/SW/Security] UID:37935 Activity:low
6/2     In the 'official' part of the motd it says ssh1 would be shut off,
        weeks ago no less, and yet it still seems to be on.  What up with that?
        \_ Whoever did the change neglected to restart sshd.  Fixed.  -jvarga
           \_ I just tried ssh from a Solaris machine to soda and I got "ssh:
              connect to host http://soda.csua.berkeley.edu port 22: Connection
              refused".  I tried both with and without the "-2" option.  Now if
	...
2004/9/24 [Computer/SW/Languages/Perl, Computer/SW/Unix] UID:33738 Activity:insanely high
9/24    I have a directory with a bunch of image files names DSCNxxxx.jpg.
        What's the quickest way to rename them all to Dscnxxxx.jpg? (just
        changing the capitalization of the first 4 letters).
        \_ foreach i (*.jpg)
           mv $i `echo $i | sed -e s/DSCN/Dscn/`
           end
	...
2004/7/13-14 [Computer/SW/WWW/Browsers] UID:32251 Activity:very high
7/12    In the news...
        "Continuing security problems have eroded Internet Explorer's
        popularity; the market share for Explorer has dropped by more than a
        percentage point from 95.48 percent to 94.42 percent..."
        Gee that's gotta hurt! Poor MS.
        \_ Although if you read a report that said non IE browsers have gained
	...
2003/8/29-2004/2/14 [Computer/Networking] UID:12259 Activity:nil
2/13    In NT or XP, is there a way to display the IP address of a remote
        machine when the remote machine is pinging my machine?  Thanks.
        \_ netstat?
              \- netstat is ridiculous for this. hammer. nail. bad. wrong.
                 i believe tcpdump runs on msftware:
                 tcpdump -i <if> 'icmp[0] = 8 or icmp[0] = 0'
	...
2003/12/15-16 [Computer/SW/OS/Windows] UID:11466 Activity:nil
12/15   My laptop doesn't have the "windows" key and I run WinXP. How can I
        lock the desktop quickly since I can't do WINKEY-L ?
        \_ Winkey = Ctrl-Esc
           \_ Not exactly.  You can't chord with ctrl-esc.
        \_ Ctl-Alt-Del, enter.
           \_ this is what I was gonna suggest. the real question is how
	...
2003/12/9-11 [Computer/SW/OS/FreeBSD, Computer/HW/Drives] UID:11387 Activity:nil
12/9    Can someone recommend a way to read the contents of a FreeBSD
        partition with UFS filesystems from a Windows box?  It's a laptop
        disk which won't boot properly by itself, FreeBSD doesn't like the
        USB case I've put it in very much, and I don't have a Mac handy. -John
        \_ You need an NT (I'm assumming you are running NT version of Windows)
           filesystem driver for UFS. Once that is installed you should be able
	...
Cache (8192 bytes)
www.faqs.org/faqs/realtime-computing/faq -> www.faqs.org/faqs/realtime-computing/faq/
These articles are repeated periodically for the benefit of new readers. Updated the HTML version locations (note that the two first one are real html whereas the others are text converted to html). Added the problem of year 2000 in real-time or embedded systems. Added RTOS Market Polling results (Mainly Japan Market Study) Added RMA Definition Book section updated Table of contents I- INTRODUCTION What is the purpose of this FAQ? III- PUBLICATIONS COVERING REAL-TIME TOPICS Books Magazines Other newsgroup and mailing lists dealing with real-time topics. IV- POLEMIC TOPICS Is Windows NT (or windows 95) a Real-Time Operating System? Which methodology should I use to design a Real-Time System? Which programming language should I use to develop a Real-Time System? What kind of processor should I use for my Real-Time System? V- MARKET Where can I find informations related to real-time products? Where can I find informations about real-time Conferences, Workshops and Tradeshows? RTOS Market Study (Mainly Japan Market) VI- RESEARCH AND FREE PRODUCTS Which Research Institute and Universities are involved in the Real-Time field? Free Real-Time Product lists VII- CONTRIBUTIONS AND FAQ LOCATION Where can I get the current copy of the FAQs? The purpose of this FAQ is to give sufficient knowledge to a new user in the Real-Time field and to serve as a reference to the engineer working in this field. This FAQ gives an overview about each topic and refers to other ressources (Internet, Publications, Company) for a more complete information. If there was a formal charter for the newsgroup at the time of its creation, we don't have access to it at the moment. However, if you are asking about a particular real-time system, see below for a (possibly) better place to start. If you are requesting information, consider setting: -- When following up, please change the Subject: line if the subject has really changed. However, short offers by vendors to provide further information by email are usually seen as acceptable. There are _several_ definitions of real-time, most of them contradictory. Unfortunately the topic is controversial, and there doesn't seem to be 100% agreement over the terminology. Guaranteeing timing behavior requires that the system be predictable. The piece is moving, and the robot has a small window to pick up the object. If the robot is late, the piece won't be there anymore, and thus the job will have been done incorrectly, even though the robot went to the right place. If the robot is _early_, the piece won't be there yet, and the robot may block it. Another example is the servo loops in an airplane when on auto-pilot. The sensors of the plane must continuously supply the control computer with proper measurements. If a measurement is missed, the performance of the airplane can degrade, sometimes to unacceptable levels. It would be soft real time if the robot arriving late meant a loss of throughput. Much of what is done in real time programming is actually soft real time system. Good system design often implies a level of safe/correct behavior even if the computer system never completes the computation. So if the computer is only a little late, the system effects may be somewhat mitigated. One will occasionally see references to "real-time" systems when what is meant is "on-line", or "an interactive system with better response time than we used to have". For instance, although some have queried whether running "rn" is real-time, it is not, as it is interacting with a human who can tolerate hundreds of milliseconds of delays without a problem. Similarly, on-line stock quotation systems interact with humans. One will also see references to "real-time" systems when what is meant is just "fast". It might be worth pointing out that "real-time" is not necessarily synonymous with "fast"; In particular, frequently, algorithms that guarantee bounded latency responses are less efficient overall than algorithms that don't. One will also occasionally see discussions of "soft" vs. In many of these discussions, "hard" real-time means the type of real-time system discussed above, and "soft" real-time means systems which have reduced constraints on "lateness" but still must operate very quickly and repeatably. However, the definition is controversial, as some mean by "hard" and "soft" the degree of time constraints. For instance, a real-time process attempting to recognize images may have only a few hundred microseconds in which to resolve each image, but a process that attempts to position a servo-motor may have tens of milli-seconds in which to process its data. Robert Bristow-Johnson adds the following distinction (in the case of DSP): In a real-time DSP process, the analyzed (input) and/or generated (output) samples (whether they are grouped together in large segments or processed individually) can be processed (or generated) continuously in the time it takes to input and/or output the same set of samples independent of the processing delay. A common life example I like to make is standing in a line (or queue) waiting for the checkout in a grocery store. If the line asymtotically grows longer and longer without bound, the checkout process is not real-time. If the length of the line is bounded, customers are being "processed" and outputted as rapidly, on average, as they are being inputted and that process _is_ real-time. The grocer might go out of business or must at least lose business if he/she cannot make his/her checkout process real-time (so it's fundamentally important that this process be real-time). The last definition is the one used for real-time audio and video, for phone call over Internet, and so on. It means that the processing time is less than the time to get a sample. Note that in the case of Internet it is easy to get starvation because the sample arrivals depend on the bandwidth. A good O'Reilly text is "POSIX Programmer's Guide: Writing Portable UNIX Programs". Credit card in-hand, phone +1 202 371 0101 to place an order. Another contact is the IEEE-USA Customer Service Center at 800 678 4333 (+1 908 981 1393 for outside of 800 zone); A RTOS (Real-Time Operating System) has to be multi-threaded and preemptible. The notion of thread priority has to exist as there is for the moment no deadline driven OS. The OS has to support predictable thread synchronisation mechanisms 4. OS Behaviour should be known So the following figures should be clearly given by the RTOS manufacturer: 1. This value depends on the number of simultaneous pending interrupts. It should be predictable and independent from the number of objects in the system; The following points should also be known by the developer: 1. A good RTOS should have a good documentation, should be delivered with good tools to develop and tune your application. So even if some figures like the Interrupt latency, Context switch time are important, there are a lot of other parameters that will make a good RTOS. For example a RTOS supporting many devices will have more advantages than a simple very good nano-kernel. It refers to the real-time performance analysis of a system design that uses static-priority driven scheduling, in particular, the "rate-monotonic" static priority assignment, where tasks with shorter periods get the higher priorities, in a typical static-priority driven real-time operating system like pSOS VxWorks VRTX etc. You need to break your software into "tasks" with "periods" and "deadlines" (relative to the period) and you must be able to guess or prototype a rough "execution time" for each task. Also, for more precise analysis, it helps to know all the critical sections and their runtimes and who shares them, or at the least, the length of the longest critical section in all of your software. If you workload does not meet deadlines, the better tools can help you to explore changes to your workload, in order to meet all the deadlines. Stankovic and Krithi Ramamritham, IEEE Computer Society reprint series, Computer Society order number 819. It covers: Real-Time Environment, Distributed Solutions, Global Time, Modeling Real-Time Systems, Real-Time Entities and Images...