Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Discuss highly factored, afferent flow, efferent flow, scope of effect, and scop

ID: 3890770 • Letter: D

Question

Discuss highly factored, afferent flow, efferent flow, scope of effect, and scope of control in detail Now indicated language features in Java, C++, or Ada designed to support these concepts. Consider both data and control. Latter in the semester, you will be expected to apply this same question to design methodologies A)Discuss optimization for space issues specific to virtual memory systems in detail. Now define what is meant by a "black box" in detail and explain its relationship to the previous part of your answer to this question. What role does organizing the code for the language translator or use of a linkage editor play in the process? Hints: program structure, looping, binary search, factoring, duplication, fan-in, fan-out, programming language structures that support minimizing page faults, relate black boxes to minimizing faults B) Discuss optimization for space issues specific to paged virtual memory management systems or memory management using overlays in detail. What role does organizing the code for the language translator or use of a linkage editor play in the process? Hints: program structure looping, binary search, factoring, duplication, fan-in, fan-out, programming language structures that support minimizing page faults, relate black boxes to minimizing faults, designer knowledge of the design, inability to take advantage of design information or program control flow information. When a memory fault occurs(both virtual and overlay) what information must be saved and what can be over written during the swapping process and why?

Explanation / Answer

Code factoring: Highly factored code is separated in terms of responsibilities.

Afferent flow: The number of classes in external modules that depend upon the this module

Efferent flow: The number of dependencies of classes in this module on classes in external modules.

The scope of effect: of a module is the set of all modules affected by changes made by the module.

The scope of control: of a module is the set of this module and subtree of all its submodules.

A) Java compiler generates bytecode instructions in the form of class files.

Most of the space related optimizations referred to are carried out during the JIT compilation(when bytecode is translated to native) which is transparent to the end user and hence the term black-box.

B) For JVM you can use optimization switches such as -XX:LargePageSizeInBytes to force the runtime to use large page sizes to reduce number of page faults.If the page size for the virtual memory environment is small the moment a page is filled up , it will trigger a page fault. If on the other hand it is too large, a large portion of available RAM will be used up for demand paging.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote