24.05.2014 Views

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

%y is now defined such that, when a century is not otherwise specified, values in<br />

the range 69-99 refer to the twentieth century, and values in the range 00-68 refer<br />

to the twenty-first century.<br />

4.2.<strong>4.3</strong> date Command<br />

Century handling has been added as follows:<br />

# date mmddhhmm[[cc]yy]<br />

cc is the century specifier.<br />

4.2.4.4 prs Command<br />

The prs command is part of SCCS and has been changed such that the -c option<br />

-c cutoff<br />

indicates the cut off date-time, in the form:<br />

YY[MM[DD[HH[MM[SS]]]]]<br />

The YY specifier is a two digit specifier to the year and, therefore, does not<br />

denote the century. YY is now defined such that values in the range 69-99 refer to<br />

the twentieth century, and values in the range 00-68 refer to the twenty-first<br />

century.<br />

<strong>4.3</strong> M:N Pthreads (<strong>4.3</strong>.1)<br />

<strong>AIX</strong> <strong>4.3</strong>.1 replaced the previous 1:1 threads implementation model with an M:N<br />

version. The M:N model complies with the UNIX98 pthreads standard, which<br />

includes the POSIX pthreads standard. Previous releases of <strong>AIX</strong> <strong>Version</strong> 4<br />

complied with Draft 7 of the POSIX pthreads standard. <strong>AIX</strong> <strong>4.3</strong>.1 is binary<br />

compatible with previous releases. The UNIX98 implementation is the default for<br />

application development, but you can use the cc_r7 or xlc_r7 compiler interfaces<br />

to develop new applications using Draft 7 pthreads. Users may need to alter<br />

existing source code to obtain the required function on <strong>AIX</strong> <strong>4.3</strong>.1 using the default<br />

UNIX98 pthreads library.<br />

<strong>4.3</strong>.1 Porting Application from Draft 7 Pthreads<br />

There are very few differences between Draft 7 and the final standard.<br />

• There are some minor errno differences. The most prevalent is the use of<br />

ESRCH to denote the specified pthread could not be found. Draft 7 frequently<br />

returns EINVAL for this failure.<br />

• Pthreads are joinable by default. This is a significant change since it can result<br />

in a memory leak if ignored.<br />

• Pthreads have process scheduling scope by default.<br />

• The subroutine pthread_yield has been replaced by sched_yield.<br />

• The various scheduling policies associated with the mutex locks are slightly<br />

different.<br />

Application Development and Pthreads 71

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!