Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设一个线程进入一个名为 m1() 的方法并开始一个新事务。当第二个线程尝试进入同一个方法时,我们注意到第二个方法被阻塞了。PROPOGATION_REQUIRED 是否会阻塞第二个线程,直到第一个线程完成工作?未设置隔离(默认)。
谢谢。
不,事务传播设置与一个线程被阻塞无关。事务精确地用于允许多个线程同时访问同一个数据库而不会出现问题。
这个方法是同步的吗?因为这可以解释阻塞行为。