man page에서....

hekimian의 이미지

kldp bbs에서 많은 것을 배워갑니다.
글올리시는 여러분께 항상 감사하고 있습니다.

다른 질문의 답변에서 어느분이 "MT-Level을 보면 unsafe로 되어있고..." 하시던데... 여기서 MT-Level이 무엇인지 궁금해서 이렇게 글 올립니다.
무식하다고 탓하셔도 좋으니 설명 부탁드립니다. ^__^

그럼 항상 행복하시길......

Quote:
Standard C Library Functions usleep(3C)

____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| MT-Level | Unsafe |
|_____________________________|_____________________________|

purewell의 이미지

Multi Thread Level

_____________________________
언제나 맑고픈 샘이가...
http://purewell.biz

vigor96의 이미지

http://www.doc.ic.ac.uk/~mac/manuals/solaris-manual-pages/solaris/usr/man/man3/Intro.3.html

MT-Level of Libraries

Libraries are classified into four categories which define
the level of the libraries' ability to support threads.

The MT-Level category of the libraries in this section are
shown on each man page under MT-Level. Pages containing rou-
tines that are of multiple or differing MT-Levels show this
under the NOTES section.

Safe Safe is simply an attribute of code that can be
called from a multithreaded application. It is a
generic term used to differentiate between code
that is unsafe.

Unsafe An unsafe library contains global and static
data that is not protected. It is not safe to
use unless the application arranges for only one
thread at time to execute within the library.
Unsafe libraries may contain routines that are
safe; however, most of the library's routines
are unsafe to call.

MT-Safe An MT-Safe library is fully prepared for mul-
tithreaded access. It protects its global and
static data with locks, and can provide a rea-
sonable amount of concurrency. Note that a
library can be safe to use, but not MT-Safe. For
example, surrounding an entire library with a
monitor makes the library safe, but it supports
no concurrency so it is not considered MT-Safe.
An MT-Safe library must permit a reasonable
amount of concurrency. (This definition's pur-
pose is to give precision to what is meant when
a library is described as safe. The definition
of a "safe" library does not specfiy if the
library supports concurrency. The MT-Safe
definition makes it clear that the library is
safe, and supports some concurrency. This clar-
ifies the safe definition, which can mean any-
thing from being single threaded to being any
degree of multithreaded.)

Async-Safe Async-Safe refers to particular library routines
that can be safely called from a signal handler.
A thread that is executing an Async-Safe routine
will not deadlock with itself if interrupted by
a signal. Signals are only a problem for MT-Safe
routines that acquire locks.

Signals are disabled when locks are acquired in
Async-Safe routines. This prevents a signal
handler that might acquire the same lock from
being called.

MT-Safe with exceptions
See the NOTES sections of these pages for a
description of the exceptions.

Safe with exceptions
See the NOTES sections of these pages for a
description of the exceptions.

hekimian의 이미지

리플 달아주신 여러분께 감사합니다.

나를 죽이지 않는 모든 것은 나를 강하게 할 뿐이다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.