coldfusionColdFusion Arrays


Syntax

  • ArrayNew(dimension, isSynchronized)

Parameters

NameDescription
DimensionNumber of dimensions in new array: 1, 2, or 3
isSynchronizedWhen false, creates an unsynchronized array, When true, the function returns a synchronized array.

Remarks

In a synchronized array, more than two threads cannot access the array simultaneously. Other threads has to wait until the active thread completes its job, resulting in significant performance.

In 2016 ColdFusion release, you can use an unsynchronized array and let multiple threads access the same array object simultaneously.