Question
Standard C library functions will always invoke a system
call when executed from a single-threaded process in a UNIX/Linux operating system?Solution
exit C library functions - Terminates the process normally, performing the regular cleanup for terminating programs. malloc - This is a function defined in standard C library and it does not always invoke the system call. When a process is created, certain amount of heap memory is already allocated to it, when required to expand or shrink that memory, it internally uses sbrk/brk system call on Unix/Linux. sleep - This is not even standard C library function, it is a POSIX standard c library function which always invokes the system call.
Which type of malware is designed to replicate itself without user intervention and spread across networks, often causing widespread disruption?
A company wants to analyze customer sentiment about their new product by extracting data from Twitter. Which data collection method is most appropriate ...
Which of the following is a supervised learning technique?
What is the primary purpose of normalization in database design?
In OOP, which concept allows a subclass to provide a specific implementation of a method already defined in its parent class?
A retail chain wants to predict next month's sales based on historical data and seasonal trends. Which of the following methods is the most suitable for...
Which of the following is a major advantage of using Power BI over traditional Excel charts for data visualization?
Which time series application would most likely require ARIMA modeling for accurate forecasting?
What does significant autocorrelation at lag k in a time series imply?
Which of the following statements is true regarding the Dickey-Fuller test in time series analysis?