Hi,
Is multithreading supported in IIS (Windows XP version)?
How do we enable and manage multithreading in IIS?
Printable View
Hi,
Is multithreading supported in IIS (Windows XP version)?
How do we enable and manage multithreading in IIS?
You can write multithreading code, but it won't work, as web requests are asynchronous.
WHat did u want to do?
Woka
I have to explore and learn how to use the multithreading facilities of IIS
:sick:
Errr...it wont work. End of.
U can do multithreading in a Win32 app easily, but not in a web app.
Woka
IIS does support multithreading, but it is quite different from what you might have done on win apps. Just make sure you make your threads isolated and thread safe and avoid any 'extravagancies' like global variables :sick:
Hmmmm...this in 2003 too?
Do you have an example of this?
Woka
Yes, it has been supported since IIS 4 or 5.
No, I don't have any examples.
Hmm I am intregued at this.
Say I start 2 threads, which run along side my main calling thread. Is there some kind of marshalling that happens to prevent the main thread returning until the other 2 threads I created finish?
Or does the main thread return a response to IE, and then keep running the 2 threads in the background on the server???
:confused:
Wooof
Look up Web services. They support threading natively.
Does the IIS user interface provide threads management facilities?
e.g. Menu, toolbars,rightclick menus etc ?
If you're getting IIS to handle it, then you don't manage it, IIS will handle it. And if IIS handles it, I believe it will run fine as long as there is no interaction between them.Quote:
Originally Posted by Wokawidget
If you're handling the threading yourself through an ISAPI class library say, then the control is entirely up to you.