Click here to Skip to main content
15,898,134 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Generalblock anonymous users from viewing a page for a few times Pin
mukesh.mr0327-Mar-08 19:12
mukesh.mr0327-Mar-08 19:12 
GeneralRe: block anonymous users from viewing a page for a few times Pin
Christian Graus27-Mar-08 19:35
protectorChristian Graus27-Mar-08 19:35 
AnswerRe: block anonymous users from viewing a page for a few times Pin
Bogdan Damian1-Apr-08 7:09
Bogdan Damian1-Apr-08 7:09 
QuestionactiveX Control.. Pin
ptr2void27-Mar-08 19:12
ptr2void27-Mar-08 19:12 
GeneralRe: activeX Control.. Pin
Christian Graus27-Mar-08 19:32
protectorChristian Graus27-Mar-08 19:32 
QuestionRe: activeX Control.. Pin
ptr2void27-Mar-08 19:42
ptr2void27-Mar-08 19:42 
QuestionRe: activeX Control.. Pin
ptr2void27-Mar-08 20:35
ptr2void27-Mar-08 20:35 
QuestionThreadPool thread limit = potential deadlock? Pin
Mike Marynowski27-Mar-08 12:05
professionalMike Marynowski27-Mar-08 12:05 
Hi,

I was thinking about the following scenario, and how it might cause a deadlock (in the case of 25 maximum threads):

-Thread1 locks object A
-Thread2 to Thread25 are created and all attempt to lock object A (but are put in a waiting state until Thread1 releases the lock)
-Thread1 creates another thread (Thread26) to perform an asyncronous operation, and waits for that to finish before releasing object A from the lock

now, since there are already 25 threads going, it seems to me like Thread26 will not be allowed to execute until another thread finishes...but that will never happen because all the other threads are waiting for object A to be released...which will never be released because Thread26 will never start executing, let alone finish...so everything will go into deadlock.

Am i missing something here? Perhaps when a thread waits for a lock to free, the ThreadPool allows another thread to execute while it waits?

Altho this seems like a far fetched situation, I can definately see it happening if you have a global Context.Application object being used a lot, and one thread happens to take a while to execute while it is locked (which is a potential scenario in an application I'm writing right now).

Thanks,

--Mike
AnswerRe: ThreadPool thread limit = potential deadlock? Pin
N a v a n e e t h27-Mar-08 16:37
N a v a n e e t h27-Mar-08 16:37 
AnswerRe: ThreadPool thread limit = potential deadlock? Pin
Guffa28-Mar-08 1:59
Guffa28-Mar-08 1:59 
GeneralRe: ThreadPool thread limit = potential deadlock? Pin
N a v a n e e t h28-Mar-08 3:03
N a v a n e e t h28-Mar-08 3:03 
GeneralAJAX UpdatePanel for Menu Control Pin
Ekjon27-Mar-08 10:54
Ekjon27-Mar-08 10:54 
GeneralRe: AJAX UpdatePanel for Menu Control Pin
Ekjon27-Mar-08 18:06
Ekjon27-Mar-08 18:06 
AnswerDoing a sync(normal) postback from and gridview inside an ajax updatepanel Pin
Bogdan Damian27-Mar-08 10:31
Bogdan Damian27-Mar-08 10:31 
QuestionManually consume webservice Pin
mpavas27-Mar-08 9:51
mpavas27-Mar-08 9:51 
GeneralRe: Manually consume webservice Pin
Christian Graus27-Mar-08 11:32
protectorChristian Graus27-Mar-08 11:32 
GeneralRe: Manually consume webservice Pin
mpavas28-Mar-08 5:03
mpavas28-Mar-08 5:03 
GeneralADAM Roleprovider class in ASP.NET 2.0 Pin
K.P.Kannan27-Mar-08 8:22
K.P.Kannan27-Mar-08 8:22 
GeneralRe: ADAM Roleprovider class in ASP.NET 2.0 Pin
RasmusLP30-Jun-08 5:16
RasmusLP30-Jun-08 5:16 
GeneralAjax Login Pin
Ed.Poore27-Mar-08 7:53
Ed.Poore27-Mar-08 7:53 
QuestionRequired Fields ? Pin
kindman_nb27-Mar-08 7:42
kindman_nb27-Mar-08 7:42 
AnswerRe: Required Fields ? Pin
Not Active27-Mar-08 8:42
mentorNot Active27-Mar-08 8:42 
GeneralCreateing xml file dynamically Pin
Sankar Komma 27-Mar-08 6:56
Sankar Komma 27-Mar-08 6:56 
GeneralRe: Createing xml file dynamically Pin
Not Active27-Mar-08 8:44
mentorNot Active27-Mar-08 8:44 
JokeRe: Createing xml file dynamically Pin
Jesse Squire27-Mar-08 8:51
Jesse Squire27-Mar-08 8:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.