Module 3 questions from LAB
.docx
keyboard_arrow_up
School
Southern New Hampshire University *
*We aren’t endorsed by this school
Course
360
Subject
Computer Science
Date
Jun 27, 2024
Type
docx
Pages
1
Uploaded by ChiefRainHamster28
Jorge Torres SNHU CS350 Emerging Sys Arch & Tech Module 3 Milestone 2
How does the macro UART_DATA_BINARY impact the UART? It initialized at 0 and the message would mean the data is not processed and this then prevents data processing during read write steps.
How does the macro UART_RETURN_FULL impact the UART? It unblocks or sends callbacks when the buffer is full.
What driver call would you use to write 10 characters out of the UART? CONFIG_TI_DIRVERS_UART_COUNT
What does the driver call to turn off LED 0? CONFIG_GPIO_LED_0
What is the UART baud rate?
115200
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
A binary executable file built with dynamic linking includes a call to printf(). The
memory address of printf in the code...
Cannot be known, it's a macro.
Will be only determined at execution - it can be anything.
Is recorded as a parameter for the CALL instruction.
Is always stored in a register.
Depends on the version of libc that compiler knows about.
arrow_forward
Problem
Write code that when executed in PowerShell, will satisfy the following requirements:
Display the contents of the c:\program files directory recursively.
• Include only the name, last write time, and length in the output.
• Pipe the result into a command that will send the output to an interactive table in a separate window.
• Include an error action that would continue without displaying any errors.
• Use only one line to solve the problem.
●
Solution
PS C:\>
Question ID: na-2101-0119-8212
arrow_forward
Q1. One of the major tasks of operating system is to maintain the recently accessed files. There are many algorithms are available to keep the index of the file in a sequence they are accessed, out of which the most common is Last In First Out algorithm. If you are asked to write program to implement that which data structure would you prefer? Why?
arrow_forward
A file whose file descriptor is fd contains the following sequence of bytes: 3, 1, 4, 1, 5,9, 2, 6, 5, 3, 5. The following system calls are made:lseek(fd, 3, SEEK_SET);read(fd, &buffer, 4);
where the lseek call makes a seek to byte 3 of the file. What does buffer contain after the read has completed?
I guess the answer is 1,5,9,2, but I'm not sure. Please tell me the detailed steps ,thanks
arrow_forward
The term for safety time added to chains other than the critical chain is: Feeding buffer, first (also known as feeding buffering).B. project buffer serves as a stand-in for C. path buffer, a kind of buffer that holds a file's path.The crucial buffer, in D
arrow_forward
Multi-Answer Question
Figure below illustrates the block diagram of a Unix file system. Two processes perform open file commands to open files "foo" and "ba
and perform operations on these two files. Suppose that Process 1 is a "producer process" and Process 2 is a "consumer process" that
communicate data using file "/../../bar" and tables shown in figure.
Select all correct answers.
System-wide
open-tile
table
Per-process
open-file table-1
File system
3
file descriptor
Super block
5
4
Process 1
FCB's
6
5
...
fd1 = open(/../../too, Read-only)
fd2 = open(/../../bar, Read-and-write)
wc = write (out-fd, buffer, #-of-bytes)
7
6
Free blocks
8
7
9
File blocks
10
Per-process
open-file table-2
11
3
FCB: File Control Block
Process 2
4
Buffer: size 1024 bytes
fd3= open(/../../bar, Read-only)
fd4 = open(/../../too, Read-and-write)
rc = read (in-td, butter, #-of-bytes)
5
6
"Per-process open-file tables" allow processes to open a file several times with different file-descriptors and for different…
arrow_forward
In C programming, write a method int ksyscall_proc_get_name(char *name).
*Copies the current process name to the buffer provided
* char *name - pointer to the buffer to copy the name.
If there is an error return -1, if success return 0.
arrow_forward
Describe the advantages of using a FileInputStream over a FileReader when dealing with binary data.
arrow_forward
Problem 0. Suppose a file contains 100 bytes of data. A program successfully opens it for both
reading and writing (i.e., passing the mode O_READWR to open()), and gets back a file descriptor
number fd.
a. The program, which has a 40-byte buffer, issues a call to read() for 40 bytes. It processes
that data, and then repeats the call. Both calls return the exact amount requested. Then it
issues a third read, again requesting 40 bytes. What value will it return? (Assume no other
program has the file open.)
b. Next the program calls write (fd, buffer, 40), and the call returns 40. Then it issues another
read() call for 40 bytes. What value does that call return?
c. Suppose the programmer needs to read back the 40 bytes just written. First it must use
1seek() to reposition the file pointer. What parameters should it invoke 1seek () with so
that the next read call will return the 40 bytes just written?
arrow_forward
Computer Science
When a program like Microsoft Word decides to write to a file, briefly describe the switches between user and kernel mode that occur, both
I when that write is initiated and when it completes.
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Related Questions
- A binary executable file built with dynamic linking includes a call to printf(). The memory address of printf in the code... Cannot be known, it's a macro. Will be only determined at execution - it can be anything. Is recorded as a parameter for the CALL instruction. Is always stored in a register. Depends on the version of libc that compiler knows about.arrow_forwardProblem Write code that when executed in PowerShell, will satisfy the following requirements: Display the contents of the c:\program files directory recursively. • Include only the name, last write time, and length in the output. • Pipe the result into a command that will send the output to an interactive table in a separate window. • Include an error action that would continue without displaying any errors. • Use only one line to solve the problem. ● Solution PS C:\> Question ID: na-2101-0119-8212arrow_forwardQ1. One of the major tasks of operating system is to maintain the recently accessed files. There are many algorithms are available to keep the index of the file in a sequence they are accessed, out of which the most common is Last In First Out algorithm. If you are asked to write program to implement that which data structure would you prefer? Why?arrow_forward
- A file whose file descriptor is fd contains the following sequence of bytes: 3, 1, 4, 1, 5,9, 2, 6, 5, 3, 5. The following system calls are made:lseek(fd, 3, SEEK_SET);read(fd, &buffer, 4); where the lseek call makes a seek to byte 3 of the file. What does buffer contain after the read has completed? I guess the answer is 1,5,9,2, but I'm not sure. Please tell me the detailed steps ,thanksarrow_forwardThe term for safety time added to chains other than the critical chain is: Feeding buffer, first (also known as feeding buffering).B. project buffer serves as a stand-in for C. path buffer, a kind of buffer that holds a file's path.The crucial buffer, in Darrow_forwardMulti-Answer Question Figure below illustrates the block diagram of a Unix file system. Two processes perform open file commands to open files "foo" and "ba and perform operations on these two files. Suppose that Process 1 is a "producer process" and Process 2 is a "consumer process" that communicate data using file "/../../bar" and tables shown in figure. Select all correct answers. System-wide open-tile table Per-process open-file table-1 File system 3 file descriptor Super block 5 4 Process 1 FCB's 6 5 ... fd1 = open(/../../too, Read-only) fd2 = open(/../../bar, Read-and-write) wc = write (out-fd, buffer, #-of-bytes) 7 6 Free blocks 8 7 9 File blocks 10 Per-process open-file table-2 11 3 FCB: File Control Block Process 2 4 Buffer: size 1024 bytes fd3= open(/../../bar, Read-only) fd4 = open(/../../too, Read-and-write) rc = read (in-td, butter, #-of-bytes) 5 6 "Per-process open-file tables" allow processes to open a file several times with different file-descriptors and for different…arrow_forward
- In C programming, write a method int ksyscall_proc_get_name(char *name). *Copies the current process name to the buffer provided * char *name - pointer to the buffer to copy the name. If there is an error return -1, if success return 0.arrow_forwardDescribe the advantages of using a FileInputStream over a FileReader when dealing with binary data.arrow_forwardProblem 0. Suppose a file contains 100 bytes of data. A program successfully opens it for both reading and writing (i.e., passing the mode O_READWR to open()), and gets back a file descriptor number fd. a. The program, which has a 40-byte buffer, issues a call to read() for 40 bytes. It processes that data, and then repeats the call. Both calls return the exact amount requested. Then it issues a third read, again requesting 40 bytes. What value will it return? (Assume no other program has the file open.) b. Next the program calls write (fd, buffer, 40), and the call returns 40. Then it issues another read() call for 40 bytes. What value does that call return? c. Suppose the programmer needs to read back the 40 bytes just written. First it must use 1seek() to reposition the file pointer. What parameters should it invoke 1seek () with so that the next read call will return the 40 bytes just written?arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage