below we discuss two approaches for avoiding race conditions to achieve thread safety bamwe muri twe bagiye muri bisi abandi bagenda ku igare umubabaro wanjye udacogora n uruguma