1- What are the motivations to use concurrent machines?
2- Define the following terms:
a. Task, describe the five different states in which a task can be.
c. competition and cooperation synchronization
d. Race condition
3- Define semaphore, what is Guard? Give an example of a semaphore
4- How is deadlock related to liveness?
5- Suppose two tasks, A and B, must use the shared variable Buf_Size. Task A adds 2 to
Buf_Size, and task B subtracts 1 from it. Assume that such arithmetic operations are done
by the three-step process of fetching the current value, performing the arithmetic, and
putting the new value back. In the absence of competition synchronization, what
sequences of events are possible and what values result from these operations? Assume
that the initial value of Buf_Size is 6.
6- LL parsers: for the following grammar
S → A b
A → ( b a b )
| ( A b )
a. Find first and follow
b. Construct LL(1) parse table
c. Is this an LL(1) grammar? Why or why not?
7- Show a complete LR(0) and SLR(1) parsers, including the canonical collection of LR(0)
and parsing table, using the following grammar
E → E + T / T
T → T F / F
F → F *
Is this grammar LR(0) or SLR(1)? Why?
8- Write appropriate Lex programs for the following tasks:
- Count number of letters and digits in the input string.
- Count the occurrences of your name in the input string.
9- Write appropriate YACC + Lex programs for the following tasks:
- Program to recognize strings of the form cat, bat, rat, hat, etc. which means that
the grammar would be of the form “[LETTER]at”. [LETTER] would be any
single letter from a-z.
- Let’s say you are developing a desktop application where your name would be
treated as the username. Write a program to recognize the string of your name
only. Any other string except your name would result in an error printed on the
n Adduct formed by using stirring (0.01 mole) of fragrant aldehyde with the forty% of NaHSO3. O-phenylenediamine (zero.01 mole) changed into dissolved in 50 ml of heat Ethanol eighty. The NaHSO3 adduct of the aldehyde is added slowly with constant stirring inside the warm answer of O-phenylenediamine stirred for 20-30 min nevertheless stable product acquired, then brought 100 ml of Distilled water and filtered . Now the product changed into recrystallised by way of using Ethanol. Step 2: Nicotinoyl Cloride 0.1 mole of Nicotinic Acid was refluxed for 6 hrs with the 20 ml of Thionyl Chloride. After this the extra of Thionyl Chloride become distilled off and separated from the product and dried it. Step 3: 0.01 mole of two-phenylbenzimidazole answer in one hundred ml Pyridine stirred for 8 hrs constantly with the zero.01 mole of Nicotinoyl Chloride ,then the water introduced 50 ml to get a strong product. The product changed into filtered, dried and recrystallised using Ethanol. Scheme: purpose AND goals Molecular modification of a promising lead compound continues to be a main line of approach for the discovery of latest drug. Molecular amendment entails substituting, removal, or including new moieties to a parent lead compound, there by means of making gradual changes inside the physico-chemical homes of the discern compound and as a consequence biological activity of the compound. it's miles clean from the literature assessment that a number of Benzimidazole derivatives are regarded for the, antibacterial, antifungal and ant-anti inflammatory activities properties. the present research had been accomplished with the subsequent goals: Synthesis of latest collection of 1,2-substituted benzimidazole derivatives. Characterization of newly synthesized compounds via spectra strategies viz.infrared spectra (IR spectra), Nuclear magnetic resonance spectra (¹H NMR spectra) and (Mass spectra). Screening of the antibacterial and Antifungal of the newly synthesized compounds the usage of various strains of micro organism and fungi by way of figuring out their MIC. Screening of 07b031025f5f96dfa8443f843db463b6 motion of Benzimidazole derivatives. Scope and Plan of work: Literature survey discovered that Benzimidazole nucleus is a part severa elegance of reported molecules exhibiting various variety of organic activities like antibacterial, antifungal, antiviral, anticancer, analgesic ,07b031025f5f96dfa8443f843db463b6 activity, antihyperlipidemic, antihistaminic, antiulcer, anti-arrhythmic , HIV-RT inhibitor. considering the reported facts approximately Benzimidazole nucleus we've attempted to synthesize some Nicotinoyl derivatives of Benzimidazole. The Benzimidazole derivatives of all above referred to sports are typically of 2-substituted type .The synthesis of 2-(substituted phenyl)-benzimidazolyl-1-pyridinyl-3-methanone changed into accomplished and screened for antibacterial, antif>GET ANSWER