1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Artemon [7]
3 years ago
7

3. In the text, we described a multithreaded file server, showing why it is better than a single-threaded server and a finite-st

ate machine server. Are there any circumstances in which a single-threaded server might be better
Engineering
1 answer:
NemiM [27]3 years ago
4 0

Answer and Explanation:

• 1 thread awaits the incoming request

• 1 thread responds to the request

• 1 thread reads the hard disk

A multithreaded file server is better than a single-threaded server and a finite-state machine server because it provides better response compared to the rest and can make use of the shared Web data.

Yes, there are circumstances in which a single-threaded server might be better. If it is designed such that:

- the server is completely CPU bound, such that multiple threads isn't needed. But it would account for some complexity that aren't needed.

An example is, the assistance number of a telephone directory (e.g 7771414) for an community of say, one million people. Consider that each name and telephone number record is sixty-four characters, the whole database takes 64 MB, and can be easily stored in the server's memory in order to provide quick lookup.

NOTE:

Multiple threads lead to operation slow down and no support for Kernel threads.

You might be interested in
Write a method called letterCount that takes two String arguments, one containing some text and the other containing a single le
jenyasd209 [6]

Answer:

I am writing a Python program.  Here is the function letterCount. This function takes two string arguments text and letter and return count of all occurrences of a letter in the text.

def letterCount(text, letter):  

 count = 0  # to count occurrences of letter in the text string

 for char in text:  # loop moves through each character in the text

   if letter == char: # if given letter matches with the value in char

     count += 1  # keeps counting occurrence of a letter in text

 return count # returns how many times a letter occurred in text

   

Explanation:

In order to see if this function works you can check by calling this function and passing a text and a letter as following:

print(letterCount('apples are tasty','a'))

Output:

3

Now lets see how this function works using the above text and letter values.

text = apples are tasty

letter = a

So the function has to compute the occurrences of 'a' in the given text 'apples are tasty'.

The loop has a variable char that moves through each character given in the text (from a of apples to y of tasty) so it is used as an index variable.

char checks each character of the text string for the occurrence of letter a.

The if condition checks if the char is positioned at a character which matches the given letter i.e. a. If it is true e.g if char is at character a of apple so the if condition evaluates to true.

When the if condition evaluates to true this means one occurrence is found and this count variable counts this occurrence. So count increments every time the occurrence of letter a is found in apples are tasty text.

The loop breaks when every character in text is traversed and finally the count variable returns all of the occurrences of that letter (a) in the given text (apples are tasty). As a occurs 3 times in text so 3 is returned in output.

The screen shot of program along with output is attached.

4 0
3 years ago
As the amplitude decreases in a wave the energy increasesTrue or false
Montano1993 [528]

Answer:

True

Explanation:

To summarise, waves carry energy. The amount of energy they carry is related to their frequency and their amplitude. The higher the frequency, the more energy, and the higher the amplitude, the more energy.

7 0
3 years ago
The cantilevered W530 x 150 beam shown is subjected to a 9.8-kN force F applied by means of a welded plate at A. Determine the e
snow_lady [41]

The <em>equivalent force-couple system</em> at O is the force and couple experienced when at point O due to the applied force at point A

The <em>equivalent force couple</em> system at O due to force <em>F</em> are;

Force, F =  (<u>8.65·i - 4.6·j</u>) KN

Couple, M₀ ≈ <u>40.9 </u>k kN·m

The reason the above values are correct is as follows:

The known values for the <em>cantilever</em> are;

The <em>height </em>of the beam = 0.65 m

The <em>magnitude of </em>the applied <em>force</em>, F = 9.8 kN

The <em>length </em>of the beam = 4.9 m

The <em>angle </em>away from the vertical the force is applied = 26°

The required parameter:

The <em>equivalent force-couple system</em> at the centroid of the beam cross-section of the cantilever

Solution:

The <em>equivalent force-couple system</em> is the force-couple system that can replace the given force at centroid of the beam cross-section at the cantilever O ;

The <em>equivalent force</em> \overset \longrightarrow F = 9.8 kN × cos(28°)·i - 9.8 kN × sin(28°)·j

Which gives;

The <em>equivalent force</em> \overset \longrightarrow F ≈ (<u>8.65·i - 4.6·j</u>) KN

The <em>couple </em><em>acting </em>at point O due to the force <em>F</em> is given as follows;

The <em>clockwise moment</em> = <em>9.8 kN × cos(28°) × 4.9</em>

The <em>anticlockwise moment</em> = <em>9.8 kN × sin(28°) 0.65/2 </em>

The sum of the moments = Anticlockwise moment - Clockwise moments

∴ The <em>sum </em>of the moments, ∑M, gives the moment acting at point O as follows;

M₀ = <em>9.8 kN × sin(28°) 0.65/2 - 9.8 kN × cos(28°) × 4.9</em>  ≈ 40.9 kN·m

The couple acting at O, due to F,  M₀ ≈ <u>40.9 kN·m</u>

The equivalent force couple system acting at point O due the force, F, is as follows

F =  (8.65·i - 4.6·j) KN

M₀ ≈ <u>40.9 </u>k kN·m

Learn more about equivalent force systems here:

brainly.com/question/12209585

4 0
3 years ago
. A two-dimensional fluid motion is represented by a point vortex of strength Γ set at distance c from an infinite straight soli
Lostsunrise [7]

Answer:

The solution and complete explanation for the above question and mentioned conditions is given below in the attached document.i hope my explanation will help you in understanding this particular question.

Explanation:

8 0
3 years ago
When engineers design solutions to problems (bridge a river, support a building, etc.) there are always certain conditions which
zheka24 [161]

Explanation:

what is your main question

6 0
2 years ago
Other questions:
  • Explain how a CO2 cartridge powers the dragster you will be building. A good website to use is How Stuff Works. (howstuffworks.c
    5·2 answers
  • A Toyota Camry of mass 1650 kg turns from Chaplin Road to Route 79, thereby accelerating from 35 MPH in the city till 70 MPH on
    6·1 answer
  • Automobile engines normally have
    8·1 answer
  • Which of the following suggestions would best help alleviate the Gulf of Mexico dead zone?
    13·1 answer
  • What is the condition for maximum efficiency in a DC motor?
    15·1 answer
  • Tech A says that speed density systems use vehicle speed and fuel density to determine injector pulse width. Tech B says that ma
    8·1 answer
  • Why might construction crews want to install pipes before the foundation is poured?
    7·1 answer
  • Which of the following statements about resistance is TRUE?
    6·1 answer
  • Which pipe for water is best for construction?
    6·1 answer
  • When starting up a dual fuel system, the temperature rise method for determining airflow cannot be used with the compressor cycl
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!