Читаем Programming with POSIX® Threads полностью

• Providing a "processor management" command to control which processors are used by the system.

Although these capabilities are universally available in all multiprocessor systems of which the working group was aware, they were dropped from the standard because of many unresolved issues, including these:

• What good does it do to know how many processors there are, if you cannot tell how many your code may use at any time? Remember, the information can change while you are asking for it. What is really needed is a function asking the question "Would the current process benefit from creation of another thread?" We don't know how to answer that question, or how to provide enough information on all reasonable architectures that the application can answer it.

• How can we bind a thread to a processor across a wide range of multiprocessor architecture? On a nonuniform memory access system, for example, representing the processors as a uniform array of integer identifiers would be misleading and useless —- binding one thread to processor 0 and another closely cooperative thread to processor 1 might put them across a relatively slow communications port rather than on two processors sharing a bank of memory.

Eventually, some standards organization (possibly POSIX) will need to address these issues and develop portable interfaces. The folks who attempt this feat may find that they need to limit the scope of the standard to a field narrower than "systems on which people may wish to use threads."

<p>Bibliography</p>

[Anderson, 1991] Thomas E. Anderson, Brian N. Bershad, Edward D. Lazowska, and Henry M. Levy, "Scheduler Activations: Effective Kernel Support for the User-Level Management of Parallelism," Proceedings of the Thirteenth ACM Symposium on Operating Systems Principles, October 1991. Research paper describing the addition of an efficient "two-level scheduler" mechanism for operating systems. This is where all modern two-level scheduler systems started—everyone's read it, everyone references it, and everyone's been inspired by it.

[Birrell, 1989] Andrew D. Birrell, An Introduction to Programming with Threads, SRC Research Report 35, Digital Systems Research Center, 130 Lytton Ave., Palo Alto, CA 94301, January 1989. Available on Internet from http:// www.research.digital.com/SRC/publications/src-rr.html

An introduction to the concepts of threaded programming. Although specifically oriented toward Modula-2+ and SRC's Taos multithreaded operating system, many essential concepts remain easily recognizable in Pthreads.

[Boykin, 1993] Joseph Boykin, David Kirschen, Alan Langerman, and J Susan LoVerso, Programming under Mach, Addison-Wesley, Reading, MA, ISBN 0-201-52739-1, 1993.

[Custer, 1993] Helen Custer, Inside Windows NT, Microsoft Press, ISBN 1-55615-481-X, 1993.

[Digital, 1996] Digital Equipment Corporation, Guide to DECthreads, Digital Equipment Corporation, part number AA-Q2DPC-TK, 1996.

Reference manual for Digital's DECthreads implementation of the Pthreads standard. An appendix (which will be removed after the Digital UNIX 4.0 and OpenVMS 7.0 versions) provides reference information on the obsolete cma and DCE threads (POSIX 1003.4a draft 4) interfaces.

[Dijkstra, 1965] E. W. Dijkstra, "Solution of a Problem in Concurrent Programming Control," Communications of the ACM, Vol. 8 (9), September 1965, pp. 569-570.

[Dijkstra, 1968a] E. W. Dijkstra, "Cooperating Sequential Processes," Programming Languages, edited by F. Genuys, Academic Press, New York, 1968, pp. 43-112.

[Dijkstra, 1968b] E. W. Dijkstra, 'The Structure of the THE'—Multiprogramming System," Communications oftheACM, Vol. 11 (5), 1968, pp. 341-346.

[Gallmeister, 1995] BiLl O. Gallmeister, POSIX.4: Programming for the Real World, O'Reilly, Sebastopol, CA, ISBN 1-56592-074-0, 1995.

POSIX 1003.1b-1993 realtime programming (based on a near-final draft of the standard).

[Hoare, 1974] C.A.R. Hoare, "Monitors: An Operating System Structuring Concept," Communications of the ACM, Vol. 17 (10), 1974, pp. 549-557.

[IEEE, 1996]9945-1:1996 (ISO/IEC) [IEEE/ANSI Std 1003.1 1996Edition]Information Technology—Portable Operating System Interface (POSIX)—Part 1: System Applwation: Program Interface (API) [C Language] (ANSI), IEEE Stan-dardsPress. ISBN 1-55937-573-6, 1996.

Перейти на страницу:

Похожие книги

1С: Бухгалтерия 8 с нуля
1С: Бухгалтерия 8 с нуля

Книга содержит полное описание приемов и методов работы с программой 1С:Бухгалтерия 8. Рассматривается автоматизация всех основных участков бухгалтерии: учет наличных и безналичных денежных средств, основных средств и НМА, прихода и расхода товарно-материальных ценностей, зарплаты, производства. Описано, как вводить исходные данные, заполнять справочники и каталоги, работать с первичными документами, проводить их по учету, формировать разнообразные отчеты, выводить данные на печать, настраивать программу и использовать ее сервисные функции. Каждый урок содержит подробное описание рассматриваемой темы с детальным разбором и иллюстрированием всех этапов.Для широкого круга пользователей.

Алексей Анатольевич Гладкий

Программирование, программы, базы данных / Программное обеспечение / Бухучет и аудит / Финансы и бизнес / Книги по IT / Словари и Энциклопедии
1С: Управление торговлей 8.2
1С: Управление торговлей 8.2

Современные торговые предприятия предлагают своим клиентам широчайший ассортимент товаров, который исчисляется тысячами и десятками тысяч наименований. Причем многие позиции могут реализовываться на разных условиях: предоплата, отсрочка платежи, скидка, наценка, объем партии, и т.д. Клиенты зачастую делятся на категории – VIP-клиент, обычный клиент, постоянный клиент, мелкооптовый клиент, и т.д. Товарные позиции могут комплектоваться и разукомплектовываться, многие товары подлежат обязательной сертификации и гигиеническим исследованиям, некондиционные позиции необходимо списывать, на складах периодически должна проводиться инвентаризация, каждая компания должна иметь свою маркетинговую политику и т.д., вообщем – современное торговое предприятие представляет живой организм, находящийся в постоянном движении.Очевидно, что вся эта кипучая деятельность требует автоматизации. Для решения этой задачи существуют специальные программные средства, и в этой книге мы познакомим вам с самым популярным продуктом, предназначенным для автоматизации деятельности торгового предприятия – «1С Управление торговлей», которое реализовано на новейшей технологической платформе версии 1С 8.2.

Алексей Анатольевич Гладкий

Финансы / Программирование, программы, базы данных