ID:2273577
 
(See the best response by Reformist.)
Code:
proc()
set background=1


Question description:Whats the pros and cons of this setting...i feel like its nothing but pro. So i was wondering if having tons of procs in the background is a good or bad thing.

Best response
"To avoid lag from procedures that hog the CPU for too long, you can turn on background processing. This will cause it to periodically sleep for long enough to allow other events to be processed."

Using it incorrectly can cause inconsistencies if multiple sources can manipulate the same data, because the sleep that it performs isn't always predictable. This is called a race condition, and can cause all sorts of headaches to track down.
world.tick_completion makes the background setting basically something you should never use now.

sleep(-1) made set background something you should never use before that.