TY - JOUR ID - TI - Thread Library to solve process synchronization problem انشاء مكتبة روابط لحل مشكلة تزامن البرامج AU - Nada A.Z. Abdullah ندا عبدالزهرة عبدالله PY - 2010 VL - IS - 14(1) SP - 83 EP - 105 JO - AL-MANSOUR JOURNAL مجلة المنصور SN - 18196489 AB - 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.

أكثر البرامج يراد أن تكتب بطريقة لتهتم بوجود بعضها البعض و تتعاون مع بعضها لانجاز هدف معين. الحل الذي يضمن تعاون البرامج مع بعضها هو ميكانيكية الأتصال المتداخل للبرامج. بغض النظر عن الميكانيكية المستخدمة، هناك كلفة إضافية متأتية من تبديل سياق تنفيذ البرامج طالما إن هناك برامج تعمل معاً.للتغلب على هذه المشكلة يفضل استخدام مفهوم الروابط. فكرة الروابط هو إن كل برنامج يكون له جزء من وقت المعالج مشترك بين عدد من الروابط تعمل في نفس الوقت ,وكل رايط يشترك مع بقية الروابط بنفس هياكل البياناتو الذاكرة للبرنامج التابعين له.في هذا البحث تم إنشاء مكتبة روابط جديدة وسهلة الأستخدام في مستوى المستخدم. وكتطبيق على استخدام هذه المكتبة تم بناء برنامج لحل مشكلة الخزن غير المحدد في المخزن المؤقت .أستخدمت لغة سي للبرمجة تحت نظام التشغيل لينكس. ER -