Operating System - OpenVMS
1827158 Members
2107 Online
109716 Solutions
New Discussion

About migrating application to POSIX THREADS

 
Robert Gezelter
Honored Contributor

Re: About migrating application to POSIX THREADS

Roberto,

Designing for performance can be subtle. Your most recent posting included the comment:

"... Because i need to sinchronizing the concurrent access at one of the application file, i use a lock for this operation. ..."

This may be a mis-communication, but if a single lock is being used to control access to the file as a whole, that would be an unneeded bottleneck. RMS shared writing does things far more efficiently than that, as can a directly implemented non-RMS scheme.

If this is the problem, a correction would be far more less work than restructuring to a different approach (and the different approach may very well not yield the benefits desired).

- Bob Gezelter, http://www.rlgsc.com
Hoff
Honored Contributor

Re: About migrating application to POSIX THREADS

Do you know where the code is spending its time?

Build and invoke with the DECset tool Performance and Coverage Analyzer (PCA) within this application as currently designed, and find out where the code is (really) spending its time. Be prepared for surprises.

On newer OpenVMS versions, you can use some of the built-in PC profiling tools (SDA Extensions), but DECset PCA does a better and more complete job.