Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Oracel not thread safe?
Bob Acker wrote:
>
> John, what do you mean by thread safe? This I think is important to me
> as I am currently using 7.2 on NT. (Will go to 7.3 when designer
> supports it.)
Thread-safe (reentrant) code allows and expects multiple threads within a single process to access it simultaneously. Among other things, such code must make judicious use of static and global variables to avoid collisions between threads attempting to access and/or modify such data simultaneously.
If you attempt to call Oracle 7.2 library functions from a multithreaded process, you're playing with fire, unless you strictly avoid having two or more threads access Oracle code at the same time (presumably via mutex). In most cases, your program will crash and burn. If it doesn't, something awful will probably happen that's just as bad.
Oracle 7.3's code has been revamped to allow multithreaded access without such concerns, hence it is "thread safe."
-- ======================================================================== John Verbil | mailto:jverbil_at_uswest.com U S WEST Information Technologies | voice: (303) 896-0916 Member of the Technical Staff | fax: (303) 896-7825 Technical Lead, Forecaster | 1005 17th Street, Room 1340 | Denver, Colorado 80202 ========================================================================Received on Tue Feb 11 1997 - 00:00:00 CST
![]() |
![]() |