mager@unix.cis.pitt.edu (Rainer V Mager) (04/02/91)
Hi, I have two questions for all you programmers out there: 1: What exactly is the system stack (you know the one you set with the CLI stack command)? I know what a regular stack is, like used in a specific program, but I don't understand how a whole system can have a stack, one happens if one program pushes something, then another pushes something, then the first pops something expecting what it pushed. Maybe this is a stupid question, but please reply. 2: is there any amiga diognostic programs out there that test, say drive speed, processor speed, or say amount of processor being used currently. Thanx in advance Rainer
bairds@eecs.cs.pdx.edu (Shawn L. Baird) (04/02/91)
mager@unix.cis.pitt.edu (Rainer V Mager) writes: >Hi, I have two questions for all you programmers out there: >1: What exactly is the system stack (you know the one you set with the >CLI stack command)? I know what a regular stack is, like used in a >specific program, but I don't understand how a whole system can have a >stack, one happens if one program pushes something, then another pushes >something, then the first pops something expecting what it pushed. >Maybe this is a stupid question, but please reply. Perhaps you are thinking of the supervisor stack. The supervisor stack is the stack for the OS (kernel) and is used during interrupts and the running of OS routines. The supervisor stack doesn't have to worry about such problems since it is the job of the OS author to prevent interrupts from switching when such a thing could happen. (This is true to the best of my knowledge, anyways) The system stack is not a stack at all in that sense, but is rather a value that newly starting processes use for their stack value. When you set stack to 4096, for example, each process you start under the CLI gets 4k for its personal stack. Under workbench you can also specify this value in the .info file for a program. I would assume, although I've never tried it, that there is some way to extend your stack from inside of a program. >2: is there any amiga diognostic programs out there that test, say drive >speed, processor speed, or say amount of processor being used currently. There are some performance indicators, such as PM on your extras disk. Also, SysInfo tells you how fast your processor is, if you have an MMU/ FPU, etc. I also recall seeing a program that would report the status of your drives. It probably times things like waiting for the motor to come up to speed, how long to read and write so many tracks, etc. >Thanx in advance >Rainer --- Shawn L. Baird, bairds@eecs.ee.pdx.edu, Wraith on DikuMUD The above message is not licensed by AT&T, or at least, not yet.