Skip to main content
3 events
when toggle format what by license comment
May 26, 2016 at 17:28 comment added Dunk This explains exactly why globals and databases aren't the same. There may be other differences but your specific post destroys the concept entirely. If you gave a quick code example then I'm sure you'd get a lot of upvotes. e.g. MyFunc(){x=globalVar * 5; // ....Some other processing; y=globalVar*34;//Ooops, some other thread could have changed globalVar during Some other processing and x and y are using different values for globalVar in their calculations, which would almost certainly not give desirable results.
May 25, 2016 at 13:56 comment added David Hammen For example, errno in C.
May 25, 2016 at 1:28 history answered G DeMasters CC BY-SA 3.0