问题详情
根据线程安全的相关知识,分析以下代码,当调用test方法时i10时是否会引起死锁并简要说明理由。
public void test(int i)
{
lock(this)
if (i10)
i--;
test(i);
}