idle

Why do we need a swapper task in linux?

The idle task (a.k.a. swapper task) is chosen to run when no more runnable tasks in the run queue at the point of task scheduling. But what is the usage for this so special task? Another question is why i can't find this thread/process in the "ps aux" output (PID=0) from the userland? ...

Windows System Idle Processes interfering with performance measurement

I am doing some performance measurement of my code on a Windows box and I am finding that I am getting dramatically different results between measurements. A quick bit of ad hoc exploration during a slow one shows in the task manager System Idle Processes taking up almost 100% CPU. Does anyone know what System Idle Processes actually m...

Is there a way to configure the Application Pool's "Idle timeout" in web.config?

I know one can set the session timeout. But, if the application itself has received no requests for a given period of time, IIS shuts down the application. This behavior is configurable in the IIS management console, and I know how to do this. Still, I wonder if it is possible to configure this in web.config. ...

Check if process is idling

I'm trying to find out when a process has stopped doing his work. I've been trying it with this code but it doesn't notice that the program is still running and processing a file. Probably because it's still doing things that take less then one microsecond: TimeSpan startTime = m_Process.TotalProcessorTime; int idleCycles = 0; ...

Animation: Timer vs Idle

There is a similar thread else where, but it focues on gameprogramming which I find a little different to regular gui applications with some 'extra sugar'. What would be the right approach for driving small gui-animations (like expanding/collapsing panels, glowing buttons etc)? Would it be best to setup a timer to fire at regular inter...

[iPhone] Delaying but not disabling iPhone auto-lock

Hi everyone, I currently have a very simple app for which the only interaction is shaking the iPhone. However eventually the screen dims and auto-locks since the iPhone is not getting any touch events. I was wondering if there is a way to reset the auto-lock time-out when shaken? I know that to disable auto-lock completely I would do...

How can one set up a thread in C# to only execute when CPU is idle?

I have a Windows Service in C#. I want a certain thread to perform specific actions, but only when the CPU is idle. Is there a way to do this in C#. ...

Visual Studio 2008 crawling after long idle time

What's up people. Something's been bothering me for a while now... and I was wondering if any of you might know of a workaround for this. The C# solution im working on is a huge solution that contains about 20 projects and almost the same amount of unit test projects. Each projects contains hundreds of files. So opening and closing the...

How to know if XBAP application is idle

Hi, How can I get to know if a XBAP application is idle ie. its not been used by an user for some specific time duration, so that I can logoff the session? Thanks Arvind ...

IDLE timeout parameter in Oracle.

We are stuck in a situation where one of our processes is taking 3 hours of computing without touching the database. The connection that was taken before calling the process gets closed by the Oracle server and any subsequent query or commit throws connection closed exception. It appears to us that the problem is related to Oracle closi...

How do I detect when a user has been idle for a certain time and destroy their session in PHP?

I would like to have my PHP website destroy a users session if they have been idle for 5 minutes. If this does happen, I'd like to present the user with a message stating why they were logged out and redirect them to the login page. What is the best way to handle this? I am running on php and myadmin. Thanks Avinash ...

Flex: detecting user idle?

How can I tell when a user has been idle for say 5 minutes on my Flex app? When I say "idle" I mean the user has not interacted with the application at all. Thanks!! ...

jetty: dynamically changing idle time

I have a jetty server which is configured to expire requests after 30 seconds, this is the configuration line in the xml config file: <Set name="maxIdleTime">30000</Set> There are two kinds of requests that are accepted by this server: requests which have to be served in real time and requests that come from batch scripts that can tak...

IMAP IDLE in Java

Are there any Java IMAP libraries with support for the IDLE commands, other than Sun Java Mail? I've been using Sun's JavaMail, and it works well, except that it has quite a bit of memory overhead. ...

IMAP Idle Timeout

Lets say I am using IMAP IDLE to monitor changes in a mail folder. The IMAP spec says that IDLE connections should only stay alive for 30 minutes max, but it is recommended that a lower number of minutes is selected - say 20 minutes, then cancel the idle and restart. I am wondering what would happen if the mail contents changed between...

How to disable Hover-Messages in .NET List/TreeViews?

I have a Windows Forms application that uses some Application.Idle handlers to change the status of controls on the form. After I added a ListView to the form I realized the Idle-Handlers get called way too often when the mouse cursor is over the ListView. By using Spy++ I saw that when the mouse cursor is over the control (not moving) ...

IDLE wont start Python 2.6.5

I was using it as my primary text editor for quite sometime. However, one day it just stopped working. This had happened to me several times before, so I simply tried to end all procceses using windows task manager. However that didn't work. I've recently tried getting it to work again. Whenever I try to reopen it it informs me that it's...

how to detect idle user in iphone-sdk

In my Application I want to call Logout Function if user is idle for certain amount of time how to accomplish this answer doesn't work for me http://stackoverflow.com/questions/273450/iphone-detecting-user-inactivity-idle-time-since-last-screen-touch if i subclass my app delegate class from UIApplication and implement - (void)sendE...

How to attach Messages from a Form shown with ShowDialog to Application2?

I am trying to use the code in this article that lets you know when your app is idle.. This code works great if your application has only one form. You call Application2.Run(myOnlyForm) on it and all messages get routed through the filters in Application2. However if at any point you call mySecondForm.ShowDialog() that dialog does not...

java jdbc mysql connector: how to resolve disconnection after a long idle time

Hiya. I'm using red5 1.0.0rc1 to create an online game. I'm connecting to a MySQL database using a jdbc mysql connector v5.1.12 it seems that after several hours of idle my application can continue running queries because the connection to the db got closed and i have to restart the application. how can I resolve the issue ? Kfir ...