473,394 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Daemon thread

MK
I want to start a thread when the application pool is started or webserver
is started.
This thread will stay in the background and will sleep most of the time. How
would I start this thread?
Is there any server side settings that will do this?
(Just like in websphere app server settings where you can call up a servlet
during the appserver startup).

Thanks for your help.

-MK

Sep 22 '08 #1
2 2235
MK has brought this to us :
I want to start a thread when the application pool is started or webserver is
started.
This thread will stay in the background and will sleep most of the time. How
would I start this thread?
Is there any server side settings that will do this?
(Just like in websphere app server settings where you can call up a servlet
during the appserver startup).

Thanks for your help.

-MK
You can start that thread in Global.asax, in the Application_Start
method.

Hans Kesting
Sep 22 '08 #2
MK
"Hans Kesting" <ne*********@spamgourmet.comwrote in message
news:eP**************@TK2MSFTNGP04.phx.gbl...
MK has brought this to us :
>I want to start a thread when the application pool is started or
webserver is started.
This thread will stay in the background and will sleep most of the time.
How would I start this thread?
Is there any server side settings that will do this?
(Just like in websphere app server settings where you can call up a
servlet during the appserver startup).

Thanks for your help.

-MK

You can start that thread in Global.asax, in the Application_Start method.
Thanks much.
>
Hans Kesting


Sep 22 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Rob Hunter | last post by:
Hi all. I want to run a Python daemon that manages a "to-do" queue. I want it so that the daemon is always running, where its running consists of looking at the queue to see if it has any jobs,...
3
by: ivan le magnifique | last post by:
Hi there. I would like to know how to launch a script from the command line (like via telnet) with the ability to exit the command line without stopping the thead. Afterwards I would like to be...
7
by: Michael Ransburg | last post by:
Hi! I have implemented a daemon in C++. It runs all the time, between reboots. Is there a way for other C++ classes to get a reference to the instance of this daemon class in order to call its...
4
by: cyshao | last post by:
Why Windows doesn't allow to launch daemon/service in command line ?? Unix/Linux can simply do that....
1
by: Stefan Neumann | last post by:
I have written a daemon which should run endlessly. The structure looks like this: - start-stop-daemon forks my python program then: if __name__=="__main__": try: main()
3
by: Thomas Dybdahl Ahle | last post by:
Hi, I'm writing a program, using popen4(gnuchess), The problem is, that gnuchess keeps running after program exit. I know about the atexit module, but in java, you could make a process a daemon...
5
by: qin_23 | last post by:
hey everyone. im looking for some sort of daemon or other type of program that can run on/with db2 that will periodically wake up and query a table, and depending on what it sees, it may delete...
9
by: Sakagami Hiroki | last post by:
Hi, What is the easiest way to create a daemon process in Python? Google says I should call fork() and other system calls manually, but is there no os.daemon() and the like? Regards, --...
3
by: paul | last post by:
I am writing a daemon process that reads data from the serial port / dev/ttyS0. I am using pyserial & the method for setting up a daemon described in "Chris' Python Page"...
13
dmjpro
by: dmjpro | last post by:
class MainClass{ public static void main(String a){ //do something } } When i run this class file then JVM is the process having one main thread. Thread ends and process ends. I went...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.