How about start a new long time thread in asp.net webforms?

parinasiac

New Member
We have a rank list method, which takes 5 miniustes to complete.We cache the list in memcache , but when the cache expires, It will blocks all the request.So I want to cache both the list and cache time in memcache together, and set a long expire time.Every time gets the list from memcache, the programme also checks the cache time, if it over 1 hours, the programme starts a new thread which regenerates the rank list, programme returns the old list immediately,So, there is no block in the programme.The problem is , is it correct starting a new tread in asp.net ? if the new thread be killed when the aspx thread response end?And how to resolve the spread cache lock ??? we use 3 iis servers
 
Back
Top