Groups
Groups
Sign in
Groups
Groups
Saratov Operation Systems Development
Conversations
About
Send feedback
Help
Fwd: Семафоры
11 views
Skip to first unread message
Evgeny Sinelnikov
unread,
Jun 4, 2016, 6:49:24 PM
6/4/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Saratov Operation Systems Development, Зыкова Анна - Мария
По поводу актуальности SystemV семафоров.
В дополнении:
-
http://cse.yeditepe.edu.tr/~sbaydere/fall2014/cse331/files/SystemVIPC.pdf
-
http://www.cs.kent.edu/~ruttan/sysprog/lectures/shmem/semaphore.html
-
https://www.cs.cf.ac.uk/Dave/C/node26.html
-
http://www.cs.unh.edu/~jlw/cs610/notes/semaphores-in-practice.pdf
Как видно, всё это теоретические университетские изыскания и примеры:
-
https://gist.github.com/codelance/4186161
за которыми стоят реальные Unix-войны:
-
https://en.wikipedia.org/wiki/Unix_wars
-
http://stackoverflow.com/questions/4582968/system-v-ipc-vs-posix-ipc
Хотя есть и профессиональная литература:
-
http://advancedlinuxprogramming.com/alp-folder/alp-ch05-ipc.pdf
А также блоги профессионалов:
-
http://gamenao.jigsy.com/entries/general/producer-consumer-problem-in-c
-
https://phptime.ru/php-performance/perevod-pochemu-fastcgi-nginx-bystree-chem-apache-mod_php.html
(semop в тестах)
А вот и реальность в виде mod_php для Apache:
http://zgadzaj.com/how-to-install-php-53-and-52-together-on-ubuntu-1204
...
--enable-sysvsem
И реальный код:
-
http://opensource.apple.com//source/apache_mod_php4/apache_mod_php4-30/php/ext/sysvsem/sysvsem.c
-
https://github.com/laruence/php-apc/blob/master/apc_sem.c
-
https://github.com/php/php-src/tree/master/ext/sysvsem
(
http://php.net/git.php
)
Но... мир не стоит на месте и Linux тем более. С недавних пор появился:
"eventfd - create a file descriptor for event notification"
-
http://man7.org/linux/man-pages/man2/eventfd.2.html
-
http://stackoverflow.com/questions/6786234/epoll-select-for-mutexes-semaphores
И снова мы возвращаемся к теоретическим изысканиям:
-
http://people.eecs.berkeley.edu/~sangjin/2012/12/21/epoll-vs-kqueue.html
2016-06-04 22:42 GMT+03:00 Зыкова Анна - Мария <
79372...@yandex.ru
>:
>
> Список источников:
>
>
http://pages.cs.wisc.edu/~remzi/OSTEP/threads-sema.pdf
>
>
http://os-pc.ru/proc/122-semafory.html
>
>
http://shpargalum.ru/
> shpora-gos-povtas/teoriya-vyichislitelnyix-proczessov/semafornyie-primitivyi-dejkstryi.html
>
>
http://www.scs.stanford.edu/histar/src/pkg/uclibc/libpthread/linuxthreads/semaphore.h
>
>
> ----
> with the best wishes
> Zykova Anna-Maria.
>
> Student of SGU
> Computer Science and Informational Technologic
> 221. Translator
>
--
Sin (Sinelnikov Evgeny)
philos.7z
семафоры.pdf
Reply all
Reply to author
Forward
0 new messages