Re:Migrating an SQLite based django app to PostgreSQL
by markessien on Thursday March 26, 2009 @10:30AM
(#533496)
I see the problem with the process crashing. Why do you need to implement the semaphores in assembly? Threads can pre-empt the same way as processes, no? If it works there, why would it not work across processes?
[ Parent
| on HN ]
Re:Migrating an SQLite based django app to PostgreSQL
by wheels on Thursday March 26, 2009 @10:43AM
(#533512)
Because there are no POSIX APIs for bare atomic reference counting. Presumably pthreads implementations do implement atomic reference counting in assembly, it's just not exposed through the API. For more on Linux see:
man futex