RThread and globals in an .exe
| Sat, 2004-06-12 16:16 | |
|
I'm looking at some of the Python porting work that others have done, and interested in support for threads. The Python interpreter uses a lot of global variables, so currently it's a .exe. The executable is around 900kbytes, and has around 400kbytes of storage when it's started.
Looking at RThread, I am a bit confused. RThread seems to suggest that memory isn't shared between threads. Are globals shared, with just the heap not shared? The documentation I've found so far on RThread on Symbian seems to suggest that virtually nothing is shareable between threads, which makes threads sound almost like processes. Am I wrong? Can I share globals? |
|






Forum posts: 52
Memory is shared between threads in a process, in the normal fashion.
Here are the two things that might be confusing you:
-- Other R-classes (e.g. RFile, RSocket) generally cannot be shared between threads.
-- You cannot have writable static (global) data in a DLL (e.g. an app) but as you have said, .exes do not have that restriction.