fauxs
fauxs

Reputation: 1

Asp.net single threaded page requests

how to handle multiple http requests from a single client such that it is handled by single Asp.net thread. When PageAsyncTask or TPL is not an option as it does create a new thread. Code snipet will be of great help.

Upvotes: 0

Views: 176

Answers (1)

Eric J.
Eric J.

Reputation: 150108

Each separate HTTP request will be executed on a potentially separate thread.

You have no control over which thread execution of your ASP.Net page is scheduled on.

I do not believe this can be accomplished.

Think about why you are trying to do this. Do you need to share some information between the various HTTP requests? If so, consider using a session or a cookie to manage that information.

Upvotes: 1

Related Questions