To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 2025
2024  |  2026
Subject: 
Re: legOS - Does it work for you?
Newsgroups: 
lugnet.robotics
Date: 
Thu, 31 Dec 1998 22:02:48 GMT
Viewed: 
1639 times
  
Not sure if this is your problem, but most malloc implementations are
not thread safe.  Try putting your old malloc back with a lock around
it and see if that improves it.

I did make several changes to the malloc I found on the net.
In the init fuction I created an mm_semaphore with sem_init.
In both the malloc and the free functions I sandwiched
the code between a sem_wait and sem_post call.  This still
had problems.

I'm still looking for a small and simple malloc routine.
Any pointers appreciated.  I looked at the one that comes
with linux but decided it was way to complex for my needs.



Message is in Reply To:
  RE: legOS - Does it work for you?
 
(...) Not sure if this is your problem, but most malloc implementations are not thread safe. Try putting your old malloc back with a lock around it and see if that improves it. -Allen -- Did you check the web site first?: (URL) (26 years ago, 31-Dec-98, to lugnet.robotics)

12 Messages in This Thread:





Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
3 hours ago
Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR