LISA auto/RW-G+RW-R1+RW-R1
(*
* Result: Sometimes
*
* Process 0 starts (t=197998).
*
* P0 advances one grace period (t=297998).
*
* P1 -maybe- goes back a bit less than one grace period (t=198999).
*
* P2 -maybe- goes back a bit less than one grace period (t=100000).
*
* Process 0 start at t=197998, process 3 end at t=100000: Cycle allowed.
*)
{
}
P0 | P1 | P2 ;
r[once] r1 x0 | f[rcu_read_lock] | f[rcu_read_lock] ;
f[sync] | r[once] r1 x1 | r[once] r1 x2 ;
w[once] x1 1 | f[rcu_read_unlock] | f[rcu_read_unlock] ;
| w[once] x2 1 | w[once] x0 1 ;
Observed
2:r1=1; 1:r1=1; 0:r1=1;