pThread development is the best paridigm for embedded development today. It has been adopted by every major operating system and embedded operating system vendor. Millions of developers known and use this approach complete with file and socket I/O. pThreads are the mainstream. pThread development is much faster and easier than older proprietary paridigms. It offers the ability to have easily ported software to any industry standards based environment including:
All of these operating systems have the same pthread environment. Most also have processes; however, Unison offers a single process multiple thread implementation which is POSIX class 1 and class 2 compatible. This eliminates process related calls but does have complete I/O. Overall, simple application development and maintenance goes hand in hand with pthreads and good software design principles. These principles include all the steps in the software development life cycle. They also include all the architectual design rules that lead to flexible and easily maintained software. These rules coupled with a clear development approach lead directly to great embedded systems. The best approach to pthread development with file I/O and sockets is to use a design template or design pattern approach. Although this approach readily maps into UML and Use Cases, this is not a requirement for development in the pthread world. It does help with describing and implementing larger systems and is a good means of increasing communication within your team. It gives you the ability to discuss whether the critical rules have been applied. The critical rules for architectual design of your embedded software include the following:
By applying these rules along with well defined requirements, a UML diagram, a set of use cases, and a set of design templates, your system design will be clean, decoupled and highly cohesive. Here are some design patterns you may find useful during this process.
Using pthreads in your designs along with these simple rules and design patterns leads to high quality maintainable designs. Life maintaining legacy systems has never been easier. Contact us for a list of text books and other examples of these patterns. Simple application development using pthreads is fast and easy.
|
|||
