Re: Lock Free -- where to start



Joe Seigh wrote:
David Schwartz wrote:
Let me just give you my general caveat about lock free code. First, lock free code is generally non-portable and extremely complex. Such code can easily contain bugs that are extremely difficult even for experts to spot. The complexity is almost always unnecessary.

[...]

Lock free algorithms work great in kernels and low level threading libraries for a variety of reasons. Portability is not that important. The probability that there are other things to do is lower in core code (because everything passes through it). But for application code, or even most libraries on top of threading libraries, it's a pure loss.



So Java isn't portable or they shouldn't have put support for lock-free in Java or what?

Java isn't just a language, or a compiler, or a runtime library. It's also the MACHINE -- or at least the portable definition of a Virtual Machine. It can specify its own rules, and the engineers who PORT the Java VM have to do whatever is necessary (easy, hard, fast, slow, whatever) to follow those rules for the target machine.


POSIX, on the other hand, can specify only "tweaks" on the language, place loose requirements on the compiler, and provide a specification for part of a runtime library... and can't say anything at all about the machine.

The two cases are exactly the same except that everything is different.

--
Dave Butenhof, David.Butenhof@xxxxxx
HP Utility Pricing software, POSIX thread consultant
Manageability Solutions Lab (MSL), Hewlett-Packard Company
110 Spit Brook Road, ZK2/3-Q18, Nashua, NH 03062
.



Relevant Pages

  • Writing a library for .NET ?
    ... libraries... ... // You can specify all the values or you can default the Revision and Build ... // If the KeyFile and the KeyName values are both specified, ... // directory is the project directory. ...
    (alt.comp.lang.borland-delphi)
  • Re: Infopath - Submit Form to Parent Library
    ... When I set up a datasource, I have to specify exactly where I want it to be ... I am setting up some site templates, and one of the form libraries will use ... my Infopath form template as its template. ... I've seen some posts asking about and maybe even providing a solution ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Infopath - Submit Form to Parent Library
    ... When I set up a datasource, I have to specify exactly where I want it to be ... I am setting up some site templates, and one of the form libraries will use ... my Infopath form template as its template. ... I've seen some posts asking about and maybe even providing a solution ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Infopath - Submit Form to Parent Library
    ... When I set up a datasource, I have to specify exactly where I want it to be ... I am setting up some site templates, and one of the form libraries will use ... my Infopath form template as its template. ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Problems with shared libraries on Solaris
    ... "The runtime linker categorizes a process as secure if the user is ... The utility crlemay be used to specify additional ... then only the trusted directories specified by this ... See the Sun Linker and Libraries Guide, ...
    (comp.unix.programmer)