Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #4656
| From | "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Thread-safe garbage collector |
| Date | 2013-01-25 18:40 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <kdug1k$sm$1@dont-email.me> (permalink) |
| References | <ca4c37d9-767f-4710-98cf-c8c8c9238e73@googlegroups.com> <kdju0j$n33$1@dont-email.me> <79dfed67-ce5b-43d7-8ffb-3307526790ce@googlegroups.com> |
Hello Serggio, I would say that if you use entercriticalsecion and leavecriticalsection (or similar) in your program parts then it should be also possible to make thread safe programs. In any case it depends much on the ressorces used. The ODBC drivers I am using have an explicit setting "Multithreaded application" that must be set and where the manufactorer says that there is a "small" performance difference when setting the switch. There is another possibility of "multithreading" I am using: Multiple exe files partly hidden that communicate via posting messages and database changes. There is the nice Windows message WM_COPYDATA with which also long commands and answers can be transferred between two applications. It is important to use postmessage and not sendmessage. Arne Ortlinghaus <serggio2011@gmail.com> schrieb im Newsbeitrag news:79dfed67-ce5b-43d7-8ffb-3307526790ce@googlegroups.com... Arne, experience in thread-safe programming is a basic axiom. I do not even argue about it. I'm just saying that GC is not designed well enough to be thread-safe. Let me cite some paragraphs from CAVO's help: ------------------------------ When multiple threads are running, each dynamic memory pointer becomes a shared resource. One thread might load a pointer to a string into a register. (The GC can only update memory locations, not registers.) Before actually performing an operation with that pointer, execution is transferred to another thread that triggers the GC. Now the string referred to by the register in the first thread is moved, and when execution returns to the first thread, the pointer in the register is not valid anymore. The problem described above WILL BE RESOLVED IN A FUTURE RELEASE of Visual Objects, but right now the programmer has to be aware of it. ------------------------------ So I'm just asking, when that "future release" is going to be released ? :)
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Thread-safe garbage collector serggio2011@gmail.com - 2013-01-18 11:08 -0800
Re: Thread-safe garbage collector "Valery N." <mustangsoftcom@gmail.com> - 2013-01-18 13:54 -0800
Re: Thread-safe garbage collector "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> - 2013-01-21 18:30 +0100
Re: Thread-safe garbage collector serggio2011@gmail.com - 2013-01-24 07:57 -0800
Re: Thread-safe garbage collector "Ginny Caughey" <gcaughey@online.hotmail.com> - 2013-01-25 09:48 -0500
Re: Thread-safe garbage collector "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> - 2013-01-25 18:40 +0100
Re: Thread-safe garbage collector "Ginny Caughey" <gcaughey@online.hotmail.com> - 2013-01-26 07:48 -0500
Re: Thread-safe garbage collector "Valery N." <mustangsoftcom@gmail.com> - 2013-01-27 07:34 -0800
Re: Thread-safe garbage collector "Jamal" <vodotnet_nospam@yahoo.com> - 2013-01-25 15:23 -0500
Re: Thread-safe garbage collector "Dirk (Belgium)" <dirk.dot.herijgers@pbprojects.dot.be> - 2013-01-28 08:50 +0000
Re: Thread-safe garbage collector serggio2011@gmail.com - 2013-01-28 03:43 -0800
Re: Thread-safe garbage collector "Jamal" <vodotnet_nospam@yahoo.com> - 2013-01-28 10:25 -0500
csiph-web