Learning Goal: I’m working on a c programming question and need an explanation a

Learning Goal: I’m working on a c programming question and need an explanation and answer to help me learn.
1. In an infinite loop, read the standard input
2. Extract strings using whitespaces
3. For each string, check if you have internal or external commands
4. In case of internal commands, execute the corresponding function
4. In case of external commands, fork the shell process, replace the existing code segment by the code of the external program & wait for the end of the child process
Possible steps to prepare the processes before forking: connect SIGTSTP or SIGINT to a user-supplied handler before entrering onfinite loop, open pipe, redirect i/o with dup2…
Other consideration: to make easier your work, you can assume that the entry for |, >, >>, echo.txt is forbidden for example). Only exception is | can be followed by ./
./ Looks for an external command in the working directory only.
For other external commands, you can use PATH directory or working directory to find the program.in the case of reading from a file, the shell process must not die before the end of the child processes. Moreover, n gives the signal to bash to execute a command and wait the end of this command before executing the next one (as when you read from the standard input, pressing enter writes n and asks bash to execute the command before waiting for the next one at the end of the current command).
So in all cases, you have an infinite loop, except that reading EOF sends a signal to quit the shell (while from the standard input, CTR-C/CTR-Z must send the signal to quit the shell).
To use multiple pipes, you must detect the number of pipes, it will allow you to get the number of children to create. Open the pipes, fork and then in each child, find a way to close the unused file descriptors. Remind that you shell process remains executed as it is the parent process (eg 3 pipes leads to 5 processes).

Learning Goal: I’m working on a c programming multi-part question and need an ex

Learning Goal: I’m working on a c programming multi-part question and need an explanation and answer to help me learn.
Consider a system of 9 processes, P = {p1, …, p9}
Associated with the system are 6 memory cells, M = {M1, .., M6}
The domain and range for each process is given in the following table:
Process pi
Domain D(pi)
Range R(pi)
P1
M1, M2
M3
P2
M1
M5
P3
M3, M4
M1
P4
M3, M4
M5
P5
M3
M4
P6
M4
M4
P7
M5
M5
P8
M3, M4
M2
P9
M5, M6
M6
In addition, you are given the following precedence relation:
⇒= { (1,2) (1,3) (1,8) (1,9) (2,8) (2,9) (3,4) (3,8) (3,9) (4,5) (5,7) (5,9) }
(20pts) Construct the Precedence Graph (not containing any redundant or transitive edges)
(20pts) Determine if the system above is always determinate. If it is not, indicate which precedence relations are missing.
(30 pts) In the first problem, there were 9 processes, many of which were listed as pairs under the precedence relation. Suppose we are dealing with a system of only 5 processes named P1 through P5. You are given a set of constraints that are expressed by the following precedence relation:
⇒ = { (P1,P3), (P1, P5), (P2,P4), (P3, P4), (P4, P5) }
Provide pseudocode to show how you can use semaphores to enforce these constraints (i.e., the precedence relation ⇒).
4. (30pts) Implement a system of three processes (in C) which read and write sequence numbers to a file. Each of the three processes P1, P2, and P3 must obtain 50 integers from the file. The file only holds one integer at any given time. (This means that you will can only get one number at a time, and therefore must run the following steps in a loop. 50 times per process). Given a file, F, containing a single integer, each process must perform the following steps 50 times:
Open F
Read the integer N from the file
Close F
Output N and the process’ PID (either on screen or test file)
Increment N by 1
Open F
Write N to F (overwriting the current value in F)
Close F.
Will the numbers that are read by the processes P1, P2, and P3 be always unique, or do you observe duplicates of numbers being obtained by different processes (i.e., does a particular integer x appear in the output of more than on process)?
Rewrite your implementation of these 3 processes to guarantee that no duplicate numbers are ever obtained by the processes. In other words, each time the file is read by any process, that process reads a distinct integer.
Briefly describe why the code sequence above can lead to duplication of integer values and discuss how your solution will avoid these duplicates.
Your answer to this question should include:
* The source to your programs (as an attachment)
* A sample of the output demonstrating your program (In a PDF along with your other answers)
NOTE: Programs must compile and execute on the CSE machines. It is imperative that the file F containing in the integer is located on the local disk. On Linux, the /tmp directory is located on the local file system.

Learning Goal: I’m working on a c programming exercise and need support to help

Learning Goal: I’m working on a c programming exercise and need support to help me learn.OverviewIn this lab, you will use TI Code Composer Studio (CCS) to program the TC CC3220x LAUNCHXL to blink some LEDs. Blinking LEDs in the embedded space is equivalent to “Hello, world!” in the desktop space.During this milestone you will use CCS to edit, compile, and load code into the CC32xx board. You will then proceed to use it for debugging. Throughout this process, you explore the components of a CCS project and the CCS code generator (system config). You will also be able to learn more about the PWM driver.Goal: Your objective is to blink the green and yellow LEDs on the board.PromptBegin your work by accessing the Milestone One PWM Lab Guide PDF document. While this document was written for a Windows interface, the tools can be used on Mac or Linux as well. Note that to accomplish the work outlined in the guide, you will need the following:TI CC3220x LAUNCHXL
TI Code Composer Studio (installed)
USB connection between the PC and board
You should have already set up the tools you need to complete this task during your work last week. However, if you would like to review any of the setup information, you may review the guidance in the Module One Assignment. The general setup steps include the following:Proceed to the CC3220S-LAUNCHXL resource and review the documentation on the Texas Instruments microcontroller.
Download and install the SDK from the CC32xx software development kit.
Sign in to the cloud tools that you are going to be using for development at the Code Composer Studio Downloads website.
Specifically, you must address the following rubric criteria:Develop code for all of the specified functionality of the PWM peripheral. The LEDs should alternate between 10% and 90% duty cycles.
Requirements: Enough to solve the problem.