Is Spot parallel safe?

2 Dec
2024
2 Dec
'24
3:59 p.m.
Hello, Is it safe to use Spot with parallelism and python multiprocessing/multhreading? Thanks for the answer, Best regards, Vladimir Krsmanovic

7 Dec
7 Dec
2:23 p.m.
Vlada Krsmanovic <vladakrsmanovic@gmail.com> writes:
Hello, Is it safe to use Spot with parallelism and python multiprocessing/ multhreading?
Hi Vlada, Unfortunately no. The BuDDy library, that Spot uses for all BDD operations, is not thread-safe. So any algorithm of Spot that touches a BDD isn't thread-safe (just copying a BDD is enough to increment a reference counter in BuDDy). And since Spot uses BDD to represent the labels of automata... most algorithms aren't thread safe. Alexandre
310
Age (days ago)
315
Last active (days ago)
1 comments
2 participants
participants (2)
-
Alexandre Duret-Lutz
-
Vlada Krsmanovic