mirror of
https://github.com/php/doc-de.git
synced 2026-03-24 15:22:14 +01:00
199 lines
5.4 KiB
XML
199 lines
5.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 4ecb2c1b4ba1b51c5e9678a7908e001df9bc92f5 Maintainer: sammywg Status: ready -->
|
|
<!-- Reviewed: yes -->
|
|
<!-- Rev-Revision: cbac1ecf71d754707d69bdc344c4031c157eaa54 Reviewer: samesch -->
|
|
<refentry xml:id="function.proc-nice" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>proc_nice</refname>
|
|
<refpurpose>Ändert die Priorität des aktuellen Prozesses</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>proc_nice</methodname>
|
|
<methodparam><type>int</type><parameter>priority</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>proc_nice</function> ändert die Priorität des aktuellen Prozesses
|
|
um den in <parameter>priority</parameter> angegebenen Betrag. Ein positives
|
|
<parameter>priority</parameter> vermindert die Priorität des aktuellen
|
|
Prozesses, während ein negatives <parameter>priority</parameter> die
|
|
Priorität erhöht.
|
|
</para>
|
|
<para>
|
|
<function>proc_nice</function> ist in keiner Weise verwandt mit
|
|
<function>proc_open</function> und der dazugehörigen Funktionen.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>priority</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Der neue Prioritätswert; dieser Wert ist plattformabhängig.
|
|
</para>
|
|
<para>
|
|
Unter Unix bedeutet ein niedriger Wert, wie beispielsweise
|
|
<literal>-20</literal>, eine hohe Priorität, wohingegen ein positiver
|
|
Wert eine niedrigere Priorität hat.
|
|
</para>
|
|
<para>
|
|
Unter Windows hat der Parameter <parameter>priority</parameter> die
|
|
folgende Bedeutung:
|
|
</para>
|
|
<informaltable>
|
|
<tgroup cols="3">
|
|
<thead>
|
|
<row>
|
|
<entry valign="top">Prioritätsklasse</entry>
|
|
<entry valign="top">Mögliche Werte</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry valign="top">Hoch</entry>
|
|
<entry valign="top">
|
|
<parameter>priority</parameter> <literal>< -9</literal>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry valign="top">Höher als normal</entry>
|
|
<entry valign="top">
|
|
<parameter>priority</parameter> <literal>< -4</literal>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry valign="top">Normal</entry>
|
|
<entry valign="top">
|
|
<parameter>priority</parameter> <literal>< 5</literal> &
|
|
<parameter>priority</parameter> <literal>> -5</literal>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry valign="top">Niedriger als normal</entry>
|
|
<entry valign="top">
|
|
<parameter>priority</parameter> <literal>> 5</literal>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry valign="top">Leerlauf (Idle)</entry>
|
|
<entry valign="top">
|
|
<parameter>priority</parameter> <literal>> 9</literal>
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.success;
|
|
Wenn ein Fehler auftritt, zum Beispiel weil der User keine Berechtigung
|
|
hat, die Priorität eines Prozesses zu ändern, wird ein Fehler der Stufe
|
|
<constant>E_WARNING</constant> erzeugt.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="changelog">
|
|
&reftitle.changelog;
|
|
<para>
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>7.2.0</entry>
|
|
<entry>
|
|
Diese Funktion steht nun unter Windows zur Verfügung.
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Verwendung von <function>proc_nice</function>, um die Prozesspriorität auf hoch zu setzen</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
// höchste Priorität
|
|
proc_nice(-20);
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="notes">
|
|
&reftitle.notes;
|
|
<note>
|
|
<title>Verfügbarkeit</title>
|
|
<para>
|
|
<function>proc_nice</function> existiert nur, wenn Ihr System mit 'nice'
|
|
umgehen kann. 'nice' ist verfügbar unter: SVr4, SVID EXT, AT&T, X/OPEN
|
|
und BSD 4.3.
|
|
</para>
|
|
</note>
|
|
<note>
|
|
<title>Nur für Windows</title>
|
|
<para>
|
|
<function>proc_nice</function> ändert die aktuelle
|
|
<emphasis>Prozess</emphasis>priorität, selbst wenn PHP mit
|
|
Threadsicherheit kompiliert wurde.
|
|
</para>
|
|
</note>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<simplelist>
|
|
<member><function>pcntl_setpriority</function></member>
|
|
</simplelist>
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|