--- Matthew Toseland <toad at amphibian.dyndns.org> wrote:
> On Tuesday 12 February 2008 17:08, Matthew Toseland wrote:
> > AFAICS this is the way forward. Since Java attempts to use POSIX priorities
> > and they don't do anything on Linux, and since thread priorities work on 
> > Linux (and presumably on Solaris), it shouldn't result in any drastic bugs.
> 
> What exactly would we need to do to get this working? AFAICS we will need to 
> ship a binary library for Linux for each processor type we support? Can you 
> give me a makefile/shell script to build the below? It needs to be easy to 
> build such libraries for a new platform, although we will keep them in binary
> form in freenet-ext.jar (built on trustworthy dev's machines).

The source code (setpriority()) should work on all POSIX machines, not just
Linux. For the binary distribution, you'll need a library for each
architecture. I don't know if Runtime.load() is smart enough to load libraries
within a JAR.

I've attached a fleshed-out version of the source code posted earlier, complete
with Makefile, for you to play around with. You'll still need to alter parts of
it somewhat to make it fit for freenet, e.g. the library loading code.

Jack


      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: native-threads.tar.gz
Type: application/gzip
Size: 1723 bytes
Desc: 293569740-native-threads.tar.gz
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20080214/78d9fb0c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: native-threads.tar.gz.sig
Type: application/octet-stream
Size: 65 bytes
Desc: 3319777623-native-threads.tar.gz.sig
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20080214/78d9fb0c/attachment.obj>

Reply via email to