記事へのコメント4

    • 注目コメント
    • 新着コメント
    Jxck
    <<"10e10">> はだめで、 <<"10.0e10">> にしないと通らないのか。

    その他
    sleepy_yoshi
    BIF function list

    その他
    ita-wasa
    process_flag(priority, Level) This sets the process priority. Level is an atom. There are currently four priority levels: low, normal, high, and max. The default priority level is normal. NOTE: The max priority level is reserved for internal use in the Erlang runtime system, and should not be used by others. Internally in each priority level processes are scheduled in a round robin fashion. Execution of processes on priority normal and priority low will be interleaved. Processes on priority low will be selected for execution less frequently than processes on priority normal. When there are runnable processes on priority high no processes on priority low, or normal will be selected for execution. Note, however, that this does not mean that no processes on priority low, or normal will be able to run when there are processes on priority high running. On the runtime system with SMP support there might be more processes running in parallel than processes on priority high, i.e., a low, and a high priority process might execute at the same time. When there are runnable processes on priority max no processes on priority low, normal, or high will be selected for execution. As with the high priority, processes on lower priorities might execute in parallel with processes on priority max. Scheduling is preemptive. Regardless of priority, a process is preempted when it has consumed more than a certain amount of reductions since the last time it was selected for execution. NOTE: You should not depend on the scheduling to remain exactly as it is today. Scheduling, at least on the runtime system with SMP support, is very likely to be modified in the future in order to better utilize available processor cores. There is currently no automatic mechanism for avoiding priority inversion, such as priority inheritance, or priority ceilings. When using priorities you have to take this into account and handle such scenarios by yourself. Making calls from a high priority process into code that you don't have control over may cause the high priority process to wait for a processes with lower priority, i.e., effectively decreasing the priority of the high priority process during the call. Even if this isn't the case with one version of the code that you don't have under your control, it might be the case in a future version of it. This might, for example, happen if a high priority process triggers code loading, since the code server runs on priority normal. Other priorities than normal are normally not needed. When other priorities are used, they need to be used with care, especially the high priority must be used with care. A process on high priority should only perform work for short periods of time. Busy looping for long periods of time in a high priority process will most likely cause problems, since there are important servers in OTP running on priority normal.

    その他
    kgbu
    BIF(built in functions)のリスト

    その他

    注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

    アプリのスクリーンショット
    いまの話題をアプリでチェック!
    • バナー広告なし
    • ミュート機能あり
    • ダークモード搭載
    アプリをダウンロード

    関連記事

    erlang — erts v16.1

    The Erlang BIFs and predefined types. By convention, most Built-In Functions (BIFs) and all prede...

    ブックマークしたユーザー

    • Jxck2017/03/31 Jxck
    • Hiro_Matsuno2016/12/31 Hiro_Matsuno
    • nabinno2016/12/25 nabinno
    • daiki_172014/11/16 daiki_17
    • a2ikm2013/04/08 a2ikm
    • lotreal2013/03/06 lotreal
    • dotred2011/03/15 dotred
    • showyou2010/01/03 showyou
    • sleepy_yoshi2009/12/30 sleepy_yoshi
    • ita-wasa2009/02/26 ita-wasa
    • kgbu2008/06/08 kgbu
    すべてのユーザーの
    詳細を表示します

    同じサイトの新着

    同じサイトの新着をもっと読む

    いま人気の記事

    いま人気の記事をもっと読む

    いま人気の記事 - テクノロジー

    いま人気の記事 - テクノロジーをもっと読む

    新着記事 - テクノロジー

    新着記事 - テクノロジーをもっと読む

    同時期にブックマークされた記事

    いま人気の記事 - 企業メディア

    企業メディアをもっと読む