<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.sync.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'intro.sync.php',
    1 => 'Вступ',
    2 => 'Вступ',
  ),
  'up' => 
  array (
    0 => 'book.sync.php',
    1 => 'Sync',
  ),
  'prev' => 
  array (
    0 => 'book.sync.php',
    1 => 'Sync',
  ),
  'next' => 
  array (
    0 => 'sync.setup.php',
    1 => 'Встановлення/налаштування',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/sync/book.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="intro.sync" class="preface">
  <h1 class="title">Вступ</h1>
  <p class="para">
   The <code class="literal">sync</code> extension introduces cross-platform synchonization objects into PHP.
   Named and unnamed Mutex, Semaphore, Event, Reader-Writer, and named Shared Memory
   objects provide OS-level synchronization on both POSIX (e.g. Linux) and Windows
   platforms.
  </p>
  <p class="para">
   Automatic cleanup of acquired synchronization objects takes place during extension
   teardown. This means that if PHP prematurely terminates a script (e.g. script
   execution time is exceeded), objects will not be left in an unknown state.  The
   only exception to this is if PHP itself crashes (e.g. an internal buffer overflow).
  </p>
  <p class="para">
   Unnamed synchronization objects don&#039;t have a lot of use outside of a multithreaded
   scenario. Unnamed objects are more useful in conjunction with the pthreads PECL
   extension.
  </p>
  <blockquote class="note"><p><strong class="note">Зауваження</strong>: 
   <p class="para">
    Named objects require additional care to be used on all systems.
    If an object is instantiated with a specific set of parameters, it must always
    be instantiated with those parameters or the object will probably end up in an
    inconsistent state until the next reboot or a system administrator cleans up
    the mess.
   </p>
  </p></blockquote>
 </div><?php manual_footer($setup); ?>