【发布时间】:2010-12-05 07:54:06
【问题描述】:
理论问题。 如果您有 100 个单独的请求到达调用下面静态方法的 aspx 网页。
public static GeocodeResult GeocodeQuery(string query)
{
int train, tube, dlr = 0;
// manipulate these ints
if (train)
{
// do something important
}
}
每个请求都有单独的调用堆栈吗?
如果是这样- 这个静态方法调用会被推送到这些单独的调用堆栈上吗?
如果是这样- 因此这些整数线程安全吗? IE。 100 个请求,100 个调用帧,300 个整数。
干杯
【问题讨论】:
标签: c# asp.net iis static-methods callstack