Find Jobs
Hire Freelancers

System calls and I/O handling

$10-30 USD

ปิดแล้ว
โพสต์ มากกว่า 5 ปีที่ผ่านมา

$10-30 USD

ชำระเงินเมื่อส่งงาน
You are to write a program which will reserve tickets for a concert. Our concert hall is very small and has only 5 rows of 8 seats each. A random access file is to be used to keep track of which seats have been reserved. Each seat will have one byte reserved to indicate whether it is taken or not. The seat s in row r is recorded in byte (8*r + s-1) of the file where r=1, ..., 5; s=1, ..., 8. You may simply record an "O" [as Occupied] in byte(8*r + s-1) to indicate that the seat is Occupied. You may create the random access file prior to running the programs. It simply needs to have zero length. Run your program [login to view URL] twice and log the output using script or photo in concertA.log. Every request will be followed by a confirmatory response from the program with the reserved seats numbers in their corresponding [login to view URL] time and date of reservation should also be printed in the confirmation so that one can ascertain at what time and date the request was entered. Your data file should be named [login to view URL] which should be created first and should have its protection set by the commands: $ touch [login to view URL] $ chmod ug+lrw [login to view URL] Your program should prompt for a function:$ Reserve or Display>Entering D results in a display of the occupied seats while entering an R causes prompts for the row number and then for a range of seat numbers. EnteringQ quits the program. All file entries should be in raw I/O format[using buffers]with error control and boundary checking. It should be possible to enter a single symbol(char)to reserve one seat. Run 1: Reserve seats 2-5in row 1 Reserve seats 4-7in row 2 Attempt to reserve seat 4in row 2–rejected Reserve seat 3 in row 1Display reserved seats: (example output) 12345678 XOOOOOOO XXXOOOXX XXXXXXXX XXXXXXXX XXXXXXXX Run 2: Reserve seats 2-3 in row 4 Attempt to reserve seats 5-9in row 5–rejected Display reserved seats Part B- Multiple copies of the program should be able to run at the same time (started with separate terminal windows & run commands). To obtain a seat reservation for x adjacent seats in row r, the program should lock the locations corresponding to that row, make the reservation, and then unlock the locations. Use the blocking option so that you wait if the lock is not available. Your test run should show two programs running simultaneously both trying to lock row 3and one being forced to wait. Run two copies of your program [login to view URL]) from two windows at the same time and make logs [login to view URL] and [login to view URL] one for each window & run. Additional Information: Possible C/C++ library includes <sys/file.h>, <stdio.h>, <stdlib.h>, <signal.h><sys/types.h>, <unistd.h>, <fcntl.h>, <time.h> Practicing Operating Systems Techniques: Part A: -Timing -I/O analysis and error handling -Random access file using lseek, read, and write system calls Part B: -lock/flock and unlock/flock a position in the file-wait for a lock
รหัสโปรเจกต์: 17810228

เกี่ยวกับโปรเจกต์

9 ข้อเสนอ
โปรเจกต์ระยะไกล
ใช้งานอยู่ 6 ปีที่ผ่านมา

กำลังมองหาการสร้างรายได้ใช่ไหม?

ประโยชน์ของการประมูลกับ Freelancer

กำหนดงบประมาณและกรอบเวลาของคุณ
รับเงินจากการงานของคุณ
อธิบายข้อเสนอของคุณในภาพรวม
ลงทะเบียนและเสนอราคาฟรี
9 ฟรีแลนซ์กำลังเสนอราคาโดยเฉลี่ย $43 USD สำหรับงานนี้
รูปอวาตาร์ของผู้ใช้
hello,how are you. i read your bid carefully. i am c/c++, c# expert and have full experience for 10 years. c/c++, c# is my top skill and i can complete your project by using c/c++, c#. i can provide most quality and high speed. if you want to success, please contact me. Then, I will give you good result to the proposals. hire me.
$25 USD ใน 1 วัน
5.0 (39 รีวิว)
7.1
7.1
รูปอวาตาร์ของผู้ใช้
I have a lot of experience with os concepts. I can do this project.
$100 USD ใน 3 วัน
4.9 (415 รีวิว)
7.4
7.4
รูปอวาตาร์ของผู้ใช้
I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environment. I made many great projects using c++, for example, I made the tools which could convert java codes into c++ scripts, of course garbage collection included, this was very similar to a compiler, and was very complex. I also made our own mobile game using c++, I can show you the demo of client, if you like. I am very proficient in java also. I have a very good review on Freelancer.com, I never miss a project once I accept the job, you can check my review. Trust me, please let expert help you.
$120 USD ใน 2 วัน
4.9 (156 รีวิว)
7.1
7.1
รูปอวาตาร์ของผู้ใช้
I'm a Google certified Software Developer (AAD). Having plenty of experience in multi-tier diverse C++/VC++ application development. You'll get your job done perfectly. Have a look at my portfolio and reviews.
$15 USD ใน 1 วัน
5.0 (49 รีวิว)
5.6
5.6
รูปอวาตาร์ของผู้ใช้
I'm computer engineering TA with 10+ years of experience Experienced in C/C++/Data structures and algorithms / file processing / processes management and timing - fork and lock of certain processes and threads - passing signals between differen processes I gone through your requirements and will provide you perfect well commented .cpp code within few hours
$50 USD ใน 1 วัน
5.0 (93 รีวิว)
5.6
5.6
รูปอวาตาร์ของผู้ใช้
Having 5 years of experience in embedded software development. I have worked on many projects which uses the system call for device handling.
$25 USD ใน 2 วัน
4.7 (8 รีวิว)
2.5
2.5
รูปอวาตาร์ของผู้ใช้
I have 4 years experience in C development. Worked networking protocols in cutting edge technology
$25 USD ใน 1 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
My name is Aamir Yousafi. I was raised in the U.S. I have a passion for the natural sciences, and I am a science writer, software programmer, and medical coder. I have a computer science degree and am quite proficient with C, Java, Assembly, and SQL. I'm interested in this assignment. I love problem solving and coding, and especially like doing it in C. I did notice that you mentioned .cpp in your JD for this assignment; I would prefer C but I do C++ as well. Formally, I have completed IB chemistry from high school and physics & calculus from my computer science degree. I also have a CPC medical coding certification so I have a basic background in anatomy / physiology and the healthcare field.
$20 USD ใน 1 วัน
0.0 (0 รีวิว)
0.0
0.0

เกี่ยวกับลูกค้า

ปักธงของ UNITED STATES
Bowling Green, United States
5.0
1
ยืนยันวิธีการชำระเงินแล้ว
เป็นสมาชิกตั้งแต่ ก.ย. 20, 2018

การยืนยันลูกค้า

ขอบคุณ! เราได้ส่งลิงก์สำหรับเครดิตฟรีให้คุณทางอีเมลแล้ว
เกิดข้อผิดพลาดขณะส่งอีเมลของคุณ กรุณาลองอีกครั้ง
โลโก้ Freelancer Thailand / ภาษาไทย ช่วยเหลือและสนับสนุน FreelancerประเภทโปรเจคการประกวดFreelancerองค์กรแพ็กเกจสมาชิกโครงการ Freelancer ชั้นแนวหน้าการจัดการโปรเจคงานในพื้นที่Photo Anywhereหน้าจัดแสดงผลงานAPI สำหรับนักพัฒนาได้รับการยืนยันDesktop App เกี่ยวกับเกี่ยวกับเราวิธีใช้งานความปลอดภัยนักลงทุนแผนผังเว็บไซต์เรื่องราวข่าวออกสื่อทีมรางวัลข่าวประชาสัมพันธ์ร่วมงานกับเรา ข้อกำหนดนโยบายความเป็นส่วนตัวข้อกำหนดและเงื่อนไขนโยบายลิขสิทธิ์ข้อพึงปฏิบัติค่าธรรมเนียมและค่าบริการหุ้นส่วนEscrow.comLoadshiftWarrior Forum แอปโลโก้ Apple App Store โลโก้ Google Play
ไม่สามารถคัดลอกไปยังคลิปบอร์ดได้ โปรดลองอีกครั้งหลังปรับเปลี่ยนการอนุญาต
คัดลอกไปยังคลิปบอร์ดแล้ว
ผู้ใช้ที่ลงทะเบียน งานที่มีการโพสต์ทั้งหมด
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
กำลังโหลดตัวอย่าง
ได้รับอนุญาตสำหรับตำแหน่งทางภูมิศาสตร์
เซสชั่นการเข้าสู่ระบบของคุณหมดอายุและคุณได้ออกจากระบบแล้ว กรุณาเข้าสู่ระบบอีกครั้ง