In C language errno is an integer variable defined in errnoh

In C language: errno is an integer variable, defined in errno.h, that is set by system calls and some library functions in the event of an error to indicate what went wrong. There are symbolic error names with distinct values that are defined on Linux. Each of which corresponds to a type of error. The string description of any of these error names can be retrieved by strerror defined in string.h. For example, the error name \"ENFILE\" has the string description \"Too many open files in system\", and \"ENOEXEC\" has the string description \"Exec format error\", and so. In addition, perror defined in stdio.h prints the description of a system error on the standard error device preceded by any string that you provide and colons. Answer the following questions using a table format. What are the error names and descriptions of the fork system call. List all error names and descriptions specifically related to file I/O.

Solution

a)

There is a limit on the number of thread created for a process.   

The result failed due to the restriction imposed by the memory.

eg: creating a thread but parent process got terminated.

b)

EAGAIN fork():

There is a limit on the number of thread created for a process.   

ENOMEM fork()

The result failed due to the restriction imposed by the memory.

eg: creating a thread but parent process got terminated.

ENOSYS fork() process want to execute but memory not free , compatibility issues
 In C language: errno is an integer variable, defined in errno.h, that is set by system calls and some library functions in the event of an error to indicate wh

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site