Solved

Why an operating system crush

Posted on 2007-03-28
5
238 Views
Last Modified: 2013-12-10
Hi,

I want to learn some aspects of a operating system and CPUs? Like...

** Why an operating system hang on by a program crush? I think that there must be always a way of terminating a client program, but it does not.
** What is the signal of that I computer really stuck and nothing to do except to restart?
** What is going on when a CPU is Idle, or why usually the Idle Process is the highest cpu time on task manager process list :)

You see I have some question and more could be comes, give me some clear image of understanding about OS and mostly Microsoft centered explanation?

Thanks.



0
Comment
Question by:karanba
  • 2
  • 2
5 Comments
 
LVL 4

Expert Comment

by:programmer1024
ID: 18814106
1) On Windows 2000 and later, you can terminate programs and processes in the Task Manager.

2) You can't do anything and anything you have clicked on does not appear.

3) The CPU constantly running when it is "idle." It constantly checks for user actions and program/process instructions in the message queue.

Hope this helps.
0
 

Author Comment

by:karanba
ID: 18814293
Please make some more qualified answers, point reference for future reading, give me the clues that no one easily reach :). I am a web programmer, that meeans I know Taks manager terminates but sometimes it does not,  do not be afraid that it will be to technical.  ;)

0
 
LVL 8

Expert Comment

by:b0fh
ID: 18814905
If you cannot terminate an application in Task Manager, right-click and select Go To Process.  Then, right-click the process and you can terminate either the specific process or it's entire tree.  

You cannot always terminate processes via Task Manager b/c they may be protected.  In such a case, even an administrator does not always have enough privileges to terminate such a process.  There are ways around this, but they are not advised.  This is generally for a good reason.  (Try terminating all instances of lsass.exe and watch your machine tell you that it will restart in 30 seconds).  


If you hit CTRL-ALT-DEL and get no response, you're probably hosed --  unless of course, the keyboard is just not responding -- check by opening/interacting with an application using the mouse.  There is not necessarily any "Gold Standard" for rebooting a machine -- when you are no longer able to get it to respond, it is time to consider a reboot.


System Idle Process is a counter that exists so that you can easily tell what % of the time the CPU is NOT BUSY (rather than adding all active processes' CPU time together).


If you desire answers w/ more detail, please ask more detailed questions  :-)
0
 

Author Comment

by:karanba
ID: 18821760
Thanks b0fh, here questions.  

How cpu time can be calculated? I mean it is an ratio over on a time interval that which process get busy the cpu, count how many cycle and calculate then?

Can we watch what an process what it really do? Like, we know the process id and want to see if it do I/O to hard disk, or use network to get data, or interacting with a local program, when does it start, does have a parent process or has child process,.. and so on.

Is there a way that a process can hide itself  from task manager.

How many individual process can be run on a single cpu?

thanks



0
 
LVL 8

Accepted Solution

by:
b0fh earned 500 total points
ID: 18823088
Check out SysInternals (now part of Microsoft) tools, they can help you.      http://www.microsoft.com/technet/sysinternals/default.mspx

I would look at regmon, filemon, and portmon.  They will tell you what files, registry keys, and ports that processes are using.

Yes, a process can hide itself from task manager.  Check out Rootkit Revealer (again from SysInternals) and its related documentation for more information on how this is done.

Calculating CPU time... for a specific process is done for you in Task Manager.  Use Performance Monitor (start, run, perfmon.exe) and add Processor performance counters to trend overall CPU performance in a number of ways.

# of processes per single CPU -- really depends on what each process is doing... it only takes one bad apple to spoil the bunch.

I hope this answers everything.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the modern office, employees tend to move around the workplace a lot more freely. Conferences, collaborative groups, flexible seating and working from home require a new level of mobility. Technology has not only changed the behavior and the expe…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question