Searching for "c "

Q:

What is cycle stealing?

Answer

We encounter cycle stealing in the context of Direct Memory Access (DMA). Either the DMA controller can use the data bus when the CPU does not need it, or it may force the CPU to temporarily suspend operation. The latter technique is called cycle stealing. Note that cycle stealing can be done only at specific break points in an instruction cycle.

Report Error

View answer Workspace Report Error Discuss

Q:

What is the resident set and working set of a process?

Answer

Resident set is that portion of the process image that is actually in real-memory at a particular instant. Working set is that subset of resident set that is actually needed for execution. (Relate this to the variable-window size method for swapping techniques.)

Report Error

View answer Workspace Report Error Discuss

Q:

The probabiltiy that throw of two dice yields a total of 5 or 6 is:

A) 2/14 B) 5/18
C) 3/4 D) 1/4
 
Answer & Explanation Answer: B) 5/18

Explanation:

Total number of cases=36

Number of favourable cases(sum 5 or 6)=10

P(getting total of 5 or 6)=10/36=5/18

Report Error

View Answer Report Error Discuss

Filed Under: Probability

Q:

What are the typical elements of a process image?

Answer

User data: Modifiable part of user space. May include program data, user stack area, and programs that may be modified.


User program: The instructions to be executed.


System Stack: Each process has one or more LIFO stacks associated with it. Used to store parameters and calling addresses for procedure and system calls.


Process control Block (PCB): Info needed by the OS to control processes.

Report Error

View answer Workspace Report Error Discuss

Q:

What are short, long and medium-term scheduling?

Answer

Long term scheduler determines which programs are admitted to the system for processing. It controls the degree of multiprogramming. Once admitted, a job becomes a process.


Medium term scheduling is part of the swapping function. This relates to processes that are in a blocked or suspended state. They are swapped out of real-memory until they are ready to execute. The swapping-in decision is based on memory-management criteria.


Short term scheduler, also know as a dispatcher executes most frequently, and makes the finest-grained decision of which process should execute next. This scheduler is invoked whenever an event occurs. It may lead to interruption of one process by preemption.

Report Error

View answer Workspace Report Error Discuss

Q:

What is packet filter?

Answer

Packet filter is a standard router equipped with some extra functionality. The extra functionality allows every incoming or outgoing packet to be inspected. Packets meeting some criterion are forwarded normally. Those that fail the test are dropped

Report Error

View answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

Q:

Explain the concept of Reentrancy?

Answer

It is a useful, memory-saving technique for multiprogrammed timesharing systems. A Reentrant Procedure is one in which multiple users can share a single copy of a program during the same period. Reentrancy has 2 key aspects: The program code cannot modify itself, and the local data for each user process must be stored separately. Thus, the permanent part is the code, and the temporary part is the pointer back to the calling program and local variables used by that program. Each execution instance is called activation. It executes the code in the permanent part, but has its own copy of local variables/parameters. The temporary part associated with each activation is the activation record. Generally, the activation record is kept on the stack.


Note: A reentrant procedure can be interrupted and called by an interrupting program, and still execute correctly on returning to the procedure.

Report Error

View answer Workspace Report Error Discuss

Q:

Find the probability that it is either white or red ball when,one ball is drawn at random in a bag that contains 3 black,4 white and 5 red balls

A) 0.5 B) 0.75
C) 0.25 D) 0.8
 
Answer & Explanation Answer: B) 0.75

Explanation:

P(red ball) = 5/12

P(white ball) = 4/12

P(red or white ball) = 5/12 + 4/12 = 3/4 = 0.75

Report Error

View Answer Report Error Discuss

Filed Under: Probability