[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Pfork() question/problem
well, no need really. To be honest my code test was just a test to see
if it would work.
So, in this respect I only use printf() with an incremental loop. from
0 to 500 and another loop at the same time (other thread) from 800 to
0. so no aes call. and the only really is the evnt_timer() in the
first loop to see how it would react. Obviously, not very good ;)
Any other idea?
On Sun, 21 Jun 1998, Jo Even Skarstein wrote:
>On Sun, 21 Jun 1998, Katherine L Ellis wrote:
>
>> This works. HOWEVER if I put an evnt_timer(20) for example right in
>> the loop. this will lock up the whole system, Need to reboot after
>> that.
>> ANy idea what's happening?
>
>Do you use a thread-safe AES-library? The normal library use global
>arrays, so if you call the AES simultanously from two threads you'll
>mess up boths calls. You need to use a library that passes an address
>to the global array in each call, so you can use separate arrays for
>each thread. GEMlib has one from pl34 (iirc) and upwards.
>
>
>/*
>** Jo Even Skarstein http://www.stud.ntnu.no/~josk/
>**
>** beer - maria mckee - atari falcon - babylon 5
>*/
>
>
>
>
________________________________________________________________________________
Email:Kellis@primenet.com
Web http://www.primenet.com/~kellis/
________________________________________________________________________________