On Tue, 20 Jan 2009, Lorenzo Fiorini wrote: Hi,
> Now the menus are ok but I have problems with the dbfs. > The apps ( now threads ) share many dbfs. > But if I run the 3 threads at the app start, lsof shows "common" dbfs > opened only 1 time. Yes it is. The file handles are shared. We have also common lock pool for synchronization between threads and aliased workareas (they also reuse existing handles). It's necessary due to POSIX lock semantic and it also improve the speed by reducing number of system calls (open()/close() cost is minor but eliminated lseek() is really miserable) > Also it seems not a time related issue since I get the same result if > I put a wait behind every threadStart. There is nothing wrong with above. It's expected and intentionally implemented. All is correct. > I've searched in the mailing list and in the ChangeLog and what I > found seems to state that workareas are local to threads. Workareas are local to thread but they share file handles to reduce allocated resources and give working locking between threads. In the future we probably also introduce common caches. best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour