# Scheduling Policy

**URL:** <https://forum.kirupa.com/t/scheduling-policy/268353>\
**Category:** programming\
**Created:** [August 12, 2008, 10:17pm UTC](https://forum.kirupa.com/t/scheduling-policy/268353 "2008-08-12T22:17:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoDreamer](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Post date:** [August 12, 2008, 10:17pm UTC](https://forum.kirupa.com/t/scheduling-policy/268353/1 "2008-08-12T22:17:53Z")

</div>

What is the scheduling policy of Apache for PHP files?

On a server with single core processor, is it possible for one user’s PHP process to be pre-empted by another user’s PHP process? My PHP script depends on the fact that the whole file gets processed before getting interrupted. It needs to insert entries into a MySQL database with consecutive ID numbers. I’m worrying that if my site gets high traffic and Apache has some complicated scheduling policy, these ID numbers could become non-consecutive.

On servers with multi-core processors, is this even more dangerous?
