Program to send signal from child process to parent process

Assignment Help Programming Languages
Reference no: EM131086845

System Programming and Computer Control Systems

Task 1:

Control structures, Functions, Arrays and Bitwise Operations

a) Write a C program to find prime numbers up to n. The value of n should be between 6 and 30. If the value of n is less than 6 or greater than 30 it should display a relevant message

b) Write a C program to find out the sum of digits of any given number using recursion. The number should have a minimum of 4 digits and it should be your student ID. For example, if the input is 1234 then the output should be 1+2+3+4=10.

c) Write a C program for the swapping of two arrays. The output should display the two arrays before swapping and after swapping.

d) Write a C program to accept a decimal number as input and to find its binary representation and also to check if all the bits of generated binary number are bit 1 or not. If all bits are not 1 then it should display how many 1 and 0 are in the binary. For example if the input is 7 then it should display the same number 7. Its binary 111 and also a message mentioning all bits in binary 111 are bit 1 or not. The input should be between 10 and 200.

Task 2:

Virtual Instrument- LabVIEW

a) Using a graphical development environment (LabVIEW) make a Virtual Instrument (VI) for the following expressions/statements. All components of each block diagrams should be clearly explained. Also for each output a step-by-step explanation should be written at the end of the diagrams.

(i) z = (3 >> x) + (5 << y)

(ii) z = (x2^ 2)|(y & 1)

(iii) if ((a + b) >= 4)

c = (a - 2) + (b * 3)

else

c = (a + 5) * (b - 2)

Task 3:

Inter Process Communication and Files

a) Write a C program to pass integer values between parent and child processes using pipe() system call and fork() function.

b) Write a C program to send signal from child process to parent process

c) Write a C program to copy a file to another and to display a message when the file is copied. It should accept source and destination file names from command line. If source and destination files are not typed on command line, an error message should be displayed.

Task 4:

Dynamic Memory Allocation and Data Structures

a) Write a C program to implement a queue of integer data using a linked list. Create a suitable menu system that will allow the user to perform the following operations:

1. Enqueue

2. Dequeue

3. Display queue elements

4. Display queue size

5. Return front element of queue

6. Check if queue is empty

7. Quit from the application

Reference no: EM131086845

Questions Cloud

Draw a plc ladder diagram for this system : Draw a PLC ladder diagram for this system.
Difference between c language : What's the difference between C language and C ++?
Discuss why understanding research methods is necessary : Part B will discuss why understanding research methods is necessary in order to implement EBP. You may use your textbook and/or articles from peer-reviewed journals as additional references but please remember to cite in the text and include in t..
When the start button is pushed, the inlet valve opens : Draw a PLC ladder logic diagram to do the following
Program to send signal from child process to parent process : Write a C program to send signal from child process to parent process - Create a suitable menu system that will allow the user to perform.
One-time-step ohmc problem : Perform a one-time-step MC simulation of 1,000,000 paths (use Brownian motion or GARCH (1,1) or any model of your choice). Consider either a call or put payoff at this time. Use (5.67) and (5.68) to solve for the average cost of hedging and the o..
Efficiency of an algorithm in a system : Why may the efficiency of an algorithm in a system implementation have more importance than in an application's implementation?
Hermite cubic basis function expansion : Use the Hermite cubic basis functions (5.51) and (5.52) to approximate the function s2 exp[s-2 ] in the domain [-3, 3]. Begin with nodes at (-3,-2,-1,0, 1,2,3). Discretize the s -space with intervals of length 0.1, i.e. (-3.0,-2.9,-2.8,...), and a..
Describe the risks associated : Describe the risks associated with such a project. Describe an approach you would take to prepare a fixed-price and schedule estimate, and describe how your approach mitigates the risks you identified in question 1.

Reviews

Write a Review

Programming Languages Questions & Answers

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Program to do multiplications using divide-and-conquer

Recall that xy = (xy/2)2 if y is even. Use this to write down the function which calculates xy, suppose that y is a power of 2.

  Programming problem

Programming Problem can be solved by a program that performs three basic tasks-Input Data, Process Data, and Output Results.

  Write a small driver class called testemployee

ITECH1000/5000 Programming Assignment.

  Write program which asks user for names

Write down a program which asks user for names (Prompt user with something like "Enter a name, or q when finished"), assigns new Person (in heap memory) for each of them.

  Define procedural or algorithmic programming what is

what is procedural or algorithmic programming? what is object-oriented programming? what is the role of code reuse in

  Write program to merge two files that contain polynomials

Write a program that merges two files that contain polynomials. To merge two files, the input files must be in sorted order.

  Write the lisp functions

Write the subsequent LISP functions, add2, add5 and double, if they executed will produce the following results:

  Create an output sequential file

CSDP241 Program 06 - Program involves working with alternate indexes in indexed files and this program involves working with alternate indexes in indexed files.

  Program that computes the average and standard deviation

Write a program that computes the average and standard deviation of a set of double values read from a file.

  Traditional versus object-oriented design

Compare the object-oriented approach to design to the traditional approach. Give your opinion on whether or not you believe there are certain projects where one design approach might be better that the other. If so, provide an example of one (1) s..

  Develop a unit converter to convert both force

Decided on a topic requiring a computer application that includes Excel programming features. Begin the layout and basic structure of the project in class today by laying out tables, equations, user input and output. Try to complete the brainstorm..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd