int thread_writes = 0;
int data_writes = 0;
-#ifdef sun
+#ifdef USE_THR_SETCONCURRENCY
/*
- * On Solaris 2.5, threads are not timesliced. To ensure
+ * On Solaris 2.5,2.6,7 and 8 threads are not timesliced. To ensure
* that our threads can run concurrently, we need to
* increase the concurrency level to THREADS.
*/
*
* Demonstrate use of non-blocking read-write locks.
*
- * Special notes: On a Solaris system, call thr_setconcurrency()
+ * Special notes: On older Solaris system, call thr_setconcurrency()
* to allow interleaved thread execution, since threads are not
* timesliced.
*/
int thread_updates = 0, data_updates = 0;
int status;
-#ifdef sun
+#ifdef USE_THR_SETCONCURRENCY
/*
- * On Solaris 2.5, threads are not timesliced. To ensure
+ * On Solaris 2.5,2.6,7 and 8 threads are not timesliced. To ensure
* that our threads can run concurrently, we need to
* increase the concurrency level to THREADS.
*/
int thread_writes = 0;
int data_writes = 0;
-#ifdef sun
+#ifdef USE_THR_SETCONCURRENCY
/*
- * On Solaris 2.5, threads are not timesliced. To ensure
+ * On Solaris 2.5,2.6,7 and 8 threads are not timesliced. To ensure
* that our threads can run concurrently, we need to
* increase the concurrency level to THREADS.
*/
*
* Demonstrate use of non-blocking read-write locks.
*
- * Special notes: On a Solaris system, call thr_setconcurrency()
+ * Special notes: On older Solaris system, call thr_setconcurrency()
* to allow interleaved thread execution, since threads are not
* timesliced.
*/
int thread_updates = 0, data_updates = 0;
int status;
-#ifdef sun
+#ifdef USE_THR_SETCONCURRENCY
/*
- * On Solaris 2.5, threads are not timesliced. To ensure
+ * On Solaris 2.5,2.6,7 and 8 threads are not timesliced. To ensure
* that our threads can run concurrently, we need to
* increase the concurrency level to THREADS.
*/