ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You mean, write your coursework for you? No, that's for you to understand and complete yourself. Your tutor / lecturer should have provided you with information about mutex locks and such, and this is a really great project to see some object orientated things going on too, so ideal for a C++ proof of concept. We are not here to do your work for you though.
basically Im electronics student. while Im reading about statemachines I decided to write state machine program . it was not assigned by any lecturer to me. anyway thanks for suggesting c++.
OK, fair enough. I actually nearly chose to implement this for my thesis project, but didn't in the end. A mini adventure there. Exciting.
Anyway, it'd be interesting to do something as theoretical as this in code, as you'd be able to seperately implement a number of seperate building blocks into a simple solution especially when you can asynchronously link a number of objects together to pass data between them without any intervention. C++ wouldn't be essential, if I were to start this tomorrow I'd look to do some object orientated python. You'd presumably start off with a base class for an object which is able to connected to other instances, as a producer or a consumer with a fifo buffering all inbound data. (giver and taker would work, but poncy language is more fun). Then inherit (or whatever the right word is for it) that base object into a simple 1 in one out module and then expand from then on to the additional functionality.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.