@@ -75,7 +75,7 @@ The following table describes the APIs available for signal operations.
...
@@ -75,7 +75,7 @@ The following table describes the APIs available for signal operations.
>```
>```
>You can obtain and modify the configuration of signal registration. Currently, only the **SIGINFO** options are supported. For details, see the description of the **sigtimedwait** API.
>You can obtain and modify the configuration of signal registration. Currently, only the **SIGINFO** options are supported. For details, see the description of the **sigtimedwait** API.
>Transmit a signal.
>Transmit a signal.
>a. Among the default signal-receiving behaviors, the process does not support **STOP**, **COTINUE**, and **COREDUMP** defined in the POSIX standard.
>a. Among the default signal-receiving behaviors, the process does not support **STOP**, **CONTINUE**, and **COREDUMP** defined in the POSIX standard.
>b. The **SIGSTOP**, **SIGKILL**, and **SIGCONT** signals cannot be shielded.
>b. The **SIGSTOP**, **SIGKILL**, and **SIGCONT** signals cannot be shielded.
>c. If a process killed is not reclaimed by its parent process, the process becomes a zombie process.
>c. If a process killed is not reclaimed by its parent process, the process becomes a zombie process.
>d. A process will not call back the signal received until the process is scheduled.
>d. A process will not call back the signal received until the process is scheduled.
<tdclass="cellrowborder"valign="top"width="52%"headers="mcps1.2.4.1.2 "><pid="p462mcpsimp"><aname="p462mcpsimp"></a><aname="p462mcpsimp"></a>Queries information about all the semaphores in use. The information includes <strongid="b189454249533849"><aname="b189454249533849"></a><aname="b189454249533849"></a>SemID</strong>, <strongid="b162724654333849"><aname="b162724654333849"></a><aname="b162724654333849"></a>Count</strong>, <strongid="b111325307233849"><aname="b111325307233849"></a><aname="b111325307233849"></a>OriginalCount</strong>, <strongid="b182850346833849"><aname="b182850346833849"></a><aname="b182850346833849"></a>Creater(TaskEntry)</strong>, and <strongid="b213750533633849"><aname="b213750533633849"></a><aname="b213750533633849"></a>LastAccessTime</strong>.</p>
<tdclass="cellrowborder"valign="top"width="52%"headers="mcps1.2.4.1.2 "><pid="p462mcpsimp"><aname="p462mcpsimp"></a><aname="p462mcpsimp"></a>Queries information about all the semaphores in use. The information includes <strongid="b189454249533849"><aname="b189454249533849"></a><aname="b189454249533849"></a>SemID</strong>, <strongid="b162724654333849"><aname="b162724654333849"></a><aname="b162724654333849"></a>Count</strong>, <strongid="b111325307233849"><aname="b111325307233849"></a><aname="b111325307233849"></a>OriginalCount</strong>, <strongid="b182850346833849"><aname="b182850346833849"></a><aname="b182850346833849"></a>Creator(TaskEntry)</strong>, and <strongid="b213750533633849"><aname="b213750533633849"></a><aname="b213750533633849"></a>LastAccessTime</strong>.</p>
>The **ID** value can be in decimal or hexadecimal format.
>The **ID** value can be in decimal or hexadecimal format.
>When **ID** is a value within \[0, 1023\], semaphore information of the specified ID is displayed. If the specified semaphore is not used, a message is displayed to inform you of this case. For other values, a message is displayed indicating that the parameter is incorrect.
>When **ID** is a value within \[0, 1023\], semaphore information of the specified ID is displayed. If the specified semaphore is not used, a message is displayed to inform you of this case. For other values, a message is displayed indicating that the parameter is incorrect.
...
@@ -112,7 +112,7 @@ Example 2: detailed semaphore information
...
@@ -112,7 +112,7 @@ Example 2: detailed semaphore information
<tdclass="cellrowborder"valign="top"width="50%"headers="mcps1.2.3.1.2 "><pid="p282916401148"><aname="p282916401148"></a><aname="p282916401148"></a>Original count of the semaphore</p>
<tdclass="cellrowborder"valign="top"width="50%"headers="mcps1.2.3.1.2 "><pid="p282916401148"><aname="p282916401148"></a><aname="p282916401148"></a>Original count of the semaphore</p>
<tdclass="cellrowborder"valign="top"width="50%"headers="mcps1.2.3.1.2 "><pid="p168298407419"><aname="p168298407419"></a><aname="p168298407419"></a>Address of the entry function of the thread used to create the semaphore</p>
<tdclass="cellrowborder"valign="top"width="50%"headers="mcps1.2.3.1.2 "><pid="p168298407419"><aname="p168298407419"></a><aname="p168298407419"></a>Address of the entry function of the thread used to create the semaphore</p>