Topic: How the function variable in the multi-threaded program behaves static?
There is a function which returns a parameter continuity. I.e.
To it transferred 1, it returned false (the first value obviously not continuously)
To it transferred 2, it returned true
To it transferred 3, it returned true
To it transferred 5, it returned false
To it transferred 6, it returned true
It would be desirable inside this function to save the previous value with the help static - a variable. But in an Internet did not find anything sensible on behavior static - variables in the multi-threaded program.
What will the flight tells?