Click here to Skip to main content
15,888,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I currently upload each file one by one to a handler that reads it and then does some processing on it. Once the process if finished then the next file is uploaded.

What I would like to do is free up the handler (return sooner) and, once the file is read in, chuck it at a queue to be processed by an async. process.

The way I've done this in the past is to have a single processor thread that looks for items in the queue and then shares them out to a thread pool. I have not done this for a web project yet.

I could use this process. It's pretty sturdy and I know what I'm doing with it. I would like, however, for each session to have it's own thread processor and pool.

Is this even possible? Is there a better way?

Any advice is welcome ^_^
Thanks
Andy

What I have tried:

Currently I do run run the process async., but process each file one by one.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900