Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/muc/public_html/journal/plugins/generic/googleScholar/GoogleScholarPlugin.php on line 120
Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/muc/public_html/journal/plugins/generic/citationStyleLanguage/CitationStyleLanguagePlugin.php on line 451
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home2/muc/public_html/journal/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/StyleSheet.php on line 52
Deprecated: Creation of dynamic property Seboettg\CiteProc\Root\Info::$title-short is deprecated in /home2/muc/public_html/journal/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Root/Info.php on line 62
Deprecated: Creation of dynamic property Seboettg\CiteProc\Root\Info::$category is deprecated in /home2/muc/public_html/journal/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Root/Info.php on line 62
Deprecated: Creation of dynamic property Seboettg\CiteProc\Root\Info::$updated is deprecated in /home2/muc/public_html/journal/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Root/Info.php on line 62
Deprecated: Creation of dynamic property Seboettg\CiteProc\Root\Info::$rights is deprecated in /home2/muc/public_html/journal/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Root/Info.php on line 62
Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home2/muc/public_html/journal/plugins/generic/dublinCoreMeta/DublinCoreMetaPlugin.php on line 204
Warning: Cannot modify header information - headers already sent by (output started at /home2/muc/public_html/journal/plugins/generic/googleScholar/GoogleScholarPlugin.php:120) in /home2/muc/public_html/journal/lib/pkp/classes/template/PKPTemplateManager.php on line 1489
Warning: Cannot modify header information - headers already sent by (output started at /home2/muc/public_html/journal/plugins/generic/googleScholar/GoogleScholarPlugin.php:120) in /home2/muc/public_html/journal/lib/pkp/classes/template/PKPTemplateManager.php on line 1490
Thread Library to solve process synchronization problem
| مجلة المنصور
Thread Library to solve process synchronization problem
المؤلفون
Nada A.Z. Abdullah
الملخص
Most programs needed to be written in a way that are aware of the existence of each other and which can co-operate with each other towards some common goal. The standard solution to this problem is interprocess communication mechanisms (IPC). Any IPC mechanism is chosen, there is still the context switch overhead to contend with whenever normal processes need to work together. The way to overcome this is to use the concept of threads. The idea behind threads is that each process can have its processor time slices shared between several concurrent threads, each of which also shares the memory and data structures of the process to which it belongs. In this paper a new and simple user level threads library is presented. This library can be easily used by the programmers to gain the benefits of threads. As an application a solution to the unbounded buffer problem is implemented using the developed thread library. C language under Linux Operating system is used for programming.