infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
Shareing file based counters between processes
System
Originally posted by Roland Riepel
Hi all,
Is there a way to share a file-based counter (the type created and used by the ctr* commands) between threads in different processes?
Kind regards,
Roland
Find more posts tagged with
Clovertech
Comments
jcobane1
Roland,
Yes. When you reference the counter, simply give it the full path to the counter file. i.e.
CtrNextValue /dirname/myCTR
Hope this helps.
Jim Cobane
Henry Ford Health
Russ Ross
James:
Do you think this will cause contention when both threads make a call to access the shared counter file at the same time?
jcobane1
There could be potential for contention as with any file-based activity. That consideration should be evaluated as part of Roland's design.
Jim Cobane
Henry Ford Health
Rob Abbott
If you use the Ctr* commands they have locking built-in. So contention should not be an issue.