HardwareHeaven.com

HardwareHeaven.com

Looking for the skin chooser?
 
 
  • Home

  • Hardware reviews

  • Articles

  • News

  • Tools

  • Gaming at HardwareHeaven

  • Forums

 

Go Back   HardwareHeaven.com > Forums > Software / Tools > Programming, Coding, (Web)Design


Programming, Coding, (Web)Design Discuss all your programming or design needs with likeminded people.

Reply
 
Thread Tools
Old Sep 29, 2003, 02:30 AM   #1
DriverHeaven Lover
 
Join Date: May 2003
Posts: 200
Rep Power: 0
Jincuteguy is on a distinguished road

Why Operating System uses a separate stack?

You know when a process executes a TRAP or is interrupted, the operating system uses a separate stack to execute any operating system code rather than the stack of the current process. Anyone know why the operating systems designers select this type of implementation?
Jincuteguy is offline   Reply With Quote


Old Sep 29, 2003, 02:33 AM   #2
Banned
 
Join Date: Nov 2002
Location: In clothing
Posts: 3,510
Rep Power: 0
craig588 is on a distinguished road

Donator
If I understand your question its so the OS won't crash if one of the apps crashes.
craig588 is offline   Reply With Quote
Old Sep 29, 2003, 05:30 AM Threadstarter Thread Starter   #3
DriverHeaven Lover
 
Join Date: May 2003
Posts: 200
Rep Power: 0
Jincuteguy is on a distinguished road

can anyone else add some more? thx.
Jincuteguy is offline   Reply With Quote
Old Sep 29, 2003, 11:12 AM   #4
A Legend in Underwear
 
UberLord's Avatar
 
Join Date: May 2002
Location: Unknown
Posts: 5,255
Rep Power: 0
UberLord will become famous soon enough

I don't think many people here are OS designers. My guess is so that the OS doesn't fall over
__________________
Gentoo Linux - Developer (baselayout)
Read my blog

"I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours."
Stephen Roberts
UberLord is offline   Reply With Quote
Old Oct 1, 2003, 06:49 PM Threadstarter Thread Starter   #5
DriverHeaven Lover
 
Join Date: May 2003
Posts: 200
Rep Power: 0
Jincuteguy is on a distinguished road

comon anyone????
Jincuteguy is offline   Reply With Quote
Old Oct 19, 2003, 07:03 PM   #6
BSD SMASH!
 
Malus's Avatar
 
Join Date: May 2002
Location: A rabbit hole. . .
Posts: 1,170
Rep Power: 0
Malus is on a distinguished road

If the program uses all the memory available for the stack, wouldn't that not leav enough room for the operating system to function? I haven't taken any OS courses yet, but I assume it's pretty much a safety measure to keep the OS running.
__________________
quad (FreeBSD/amd64 8-CURRENT): Intel Q6600 - Asus P5E-VM HDMI - 2x2 GB Kingston PC6400 DDR2 Ram - Seagate 320GB 7200RPM HD - 2xSeagate 1TB 7200RPM HD in RAID 1 via ZFS - Lite-On 20x DVD Multi Recorder - Coolermaster Centurion 5

router (FreeBSD/amd64 8-CURRENT):
Intel E4500 - Intel D945GCNL - 2 GB PC6400 Mushkin Ram - Lite-On 48x24x48x16 - Seagate 320GB 7200RPM HD - Silverstone SST-SG02-F

wanderer (FreeBSD/i386 7-CURRENT): Lenovo Thinkpad T61p

mini (OS X 10.5): Intel Core 2 Duo @ 1.8Ghz, 4 GB Mushkin PC5400 Ram -
Headroom MicroDAC

Portable sound: Rockboxed iPod Video -> Westone UM2's
Not-So-Portable Sound: Headroon MicroDAC -> Singlepower PPX3-SLAM -> Grado RS-1's or Beyerdynamic DT-880's
Very-Not-Portable-Sound: Squeezebox v3 -> Denon AVR-1507 -> B&W 683's & Sunfire HRS-10
Malus is offline   Reply With Quote
Reply

Thread Tools