Answer:
The exec command by interpreter to start new process
Explanation:
On Unix systems, a call to the fork system must be made followed by a call to the e x e c system to begin a new process. The fork call clones the process that is currently running, while the executive call overlays a new process based on a different executable over the calling process.
It is seperate from Kernal because
It Read user commands or a script and execute them, generally turning them into one or more system calls. Is usual It is not part of the kernel since the command interpreter is subject to change.
Answer:
It is paramount to notice that since we have word blocks and no address is separated then there are zero cache hits.Therefore the address sequence exhibits no temporal locality.
Check the attachment
Most effective way to achieve data security.
Answer:
Implementation of the given problem in C++:
#include <bits/stdc++.h>
using namespace std;
int main() {
vector<string> category, name, description, availability;
string str;
cout << "Enter the name of text file to open: ";
cin >> str;
ifstream file(str);
while (getline(file, str)) {
size_t pos1 = str.find('\t'); // to find the first tab delimiter
size_t pos2 = str.find('\t', pos1 + 1); // to find the second tab delimiter
size_t pos3 = str.find('\t', pos2 + 1); // to find the third tab delimiter
category.push_back(str.substr(0, pos1));
name.push_back(str.substr(pos1 + 1, pos2 - pos1 - 1));
description.push_back(str.substr(pos2 + 1, pos3 - pos2 - 1));
availability.push_back(str.substr(pos3 + 1, str.length() - pos3));
}
for (int i = 0; i < name.size(); i++)
if (availability[i] == "Available")
cout << name[i] << " (" << category[i] << ") -- " << description[i] << endl;
}
Output:-
import sys
number = int (input ("Enter a number between 1 to 100 : "))
x = 0
y = 0
if number == 0:
sys.exit()
if number > 50:
print("Increment x value")
x=x+1
else:
print("Increment y value")
y=y+1
if x > y:
print("Most of your numbers are greater than 50")
else
print("Most of your numbers are less than or equals to 50")
Explanation:
In this algorithm the User is asked to input the number.
If the input number is 0 then the user will exit the algorithm
If the input number is greater than 50 then X variable is incremented by 1
If the input number is less than 50 then the variable Y is incremented by 1
Then X and Y values are compared,if the value of x is greater than y then
and print command will print Most of your numbers are greater than 50
If the value of Y is greater than X then print command will print Most of your numbers are less than or equal to 50