msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

User time and kernel time

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise
Author Message
Ben Taylor



Joined: 04 Oct 2007
Posts: 14

PostPosted: Thu Nov 27, 2003 12:49 pm    Post subject: User time and kernel time Reply with quote

Does anyone know what 'kernel' time and 'user' time are?
It appears that using an application causes it to use some
of both, and leaving it idle causes the total used value
for both to stay the same - but what is the difference
between them, and what determines which of them it is
using?
Is there any way you can post a message to a window that
will cause it to use up either some kernel time or
usertime or both, but won't significantly affect the
contents of the application? It's only important for
applications that have got windows, because those that
don't will be using lots of time up anyway.

Archived from group: microsoft>public>vb>general>discussion
Back to top
View user's profile Send private message
Angus Lepper



Joined: 04 Oct 2007
Posts: 10

PostPosted: Tue Dec 02, 2003 1:00 am    Post subject: Re: User time and kernel time Reply with quote

I believe:

User Time: Time running for the user.
Kernel Time: Time spent with the Os Kernel.

(Somehow I probably just made a fool of myself. If so: Oooooooooooops.)

Angus
"Ben Taylor" wrote in message$086f7180$a101280a@phx.gbl...
> Does anyone know what 'kernel' time and 'user' time are?
> It appears that using an application causes it to use some
> of both, and leaving it idle causes the total used value
> for both to stay the same - but what is the difference
> between them, and what determines which of them it is
> using?
> Is there any way you can post a message to a window that
> will cause it to use up either some kernel time or
> usertime or both, but won't significantly affect the
> contents of the application? It's only important for
> applications that have got windows, because those that
> don't will be using lots of time up anyway.
>
Back to top
View user's profile Send private message
Ben Taylor



Joined: 04 Oct 2007
Posts: 67

PostPosted: Wed Dec 03, 2003 4:07 am    Post subject: Re: User time and kernel time Reply with quote

See answer to 'NO CARRIER', original poster 'Sylvain', 02/11/2003 14:23.


"Angus Lepper" wrote in message@TK2MSFTNGP12.phx.gbl...
> I believe:
>
> User Time: Time running for the user.
> Kernel Time: Time spent with the Os Kernel.
>
> (Somehow I probably just made a fool of myself. If so: Oooooooooooops.)
>
> Angus
> "Ben Taylor" wrote in message
> $086f7180$a101280a@phx.gbl...
> > Does anyone know what 'kernel' time and 'user' time are?
> > It appears that using an application causes it to use some
> > of both, and leaving it idle causes the total used value
> > for both to stay the same - but what is the difference
> > between them, and what determines which of them it is
> > using?
> > Is there any way you can post a message to a window that
> > will cause it to use up either some kernel time or
> > usertime or both, but won't significantly affect the
> > contents of the application? It's only important for
> > applications that have got windows, because those that
> > don't will be using lots of time up anyway.
> >
>
>
Back to top
View user's profile Send private message
Tom Esh



Joined: 04 Oct 2007
Posts: 416

PostPosted: Thu Nov 27, 2003 7:29 pm    Post subject: Re: User time and kernel time Reply with quote

On Thu, 27 Nov 2003 07:49:25 -0800, "Ben Taylor"
wrote:

>Does anyone know what 'kernel' time and 'user' time are?
>It appears that using an application causes it to use some
>of both, and leaving it idle causes the total used value
>for both to stay the same - but what is the difference
>between them, and what determines which of them it is
>using?

User mode is what applications run in, using address space provided
for applications. Kernel mode is reserved for the OS (and drivers).
Apps cannot access kernel mode directly. When necessary (for example
to process GDI Api functions), the OS will access kernel mode on an
app's behalf. AFIK, system idle time is considered neither.

>Is there any way you can post a message to a window that
>will cause it to use up either some kernel time or
>usertime or both, but won't significantly affect the
>contents of the application?

Why would you want to do that ...or care for that matter?
Also what is application "contents"?
Anyhow, which calls use kernel mode is not something I've paid much
attention to, but I think GDI calls for one should increase it. It's
also likely to take a lot of calls to make any sort of noticable
difference, especially on something like a P4 3ghz.

>...It's only important for
>applications that have got windows, because those that
>don't will be using lots of time up anyway.
Not following you at all there. Whether an app has windows (visible or
not) has little to do with how much cpu time it uses.


-Tom
MVP - Visual Basic
(please post replies to the newsgroup)

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Time between times. Hi all, wonder if anyone has had to do anything like this before, if so what's the best way... I have two times, 14/11/2003 11:45:32 and 27/11/2003 16:14:53 I need to work out the number of work hours between them, work hours being 09:00 t

To UTC time Hi , I am facing a very small but irritating problem. Can u tell me what is the function in VB6 to convert Local Time to UTC time. When I search in internet all .net articles come up. Please help... Regards, Akil

Get Login Time Hello All, I want to develop a application that will send a login time to a database. Please let me know how to capture the login time as soon as the user logs in. I do not know which files keep track of these information on the server. As the I am not th

API Time elapsed Hello. How i know the time elapsed between the last move of mouse or the last press of key and now ?? Exists an api ?? The concept is similar an screensaver. Thanks in advance.

Convert Decimal Value to Time format ? How can I convert 0.93556 to display 0:56:08 time format ( i.e. 0 hours, 56 minutes, 08 seconds) Best Regards, Luqman
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group