6956
On the subject of real-time OS's, I read this sentence:

> 割り込みを一時的に不可(マスク)とする。

Where 不可 apparently means "to mask". I can understand that "割り込み masks
something", but I can't understand "不可とする"

The definition of 不可 that I looked up was "wrong, bad, improper, inadvisable".
So, what does "不可とする" mean in this context?
CC BY-SA 3.0
2012-09-28T17:24:23.870
6951
2012-09-28T23:51:08.213
1328
question
usage definitions
What does 不可とする mean?
> "I can understand that '割り込み masks something'".

The word 割り込み means a CPU interrupt. So it appears to say "Temporarily disable
(via bit masking) interrupts".

The 不可 means "improper, inadvisable", as you said. But the とする means "to make
such". So altogether 不可とする means disable.
CC BY-SA 3.0
2012-09-28T17:42:30.730
6952
2012-09-28T18:04:49.400
2012-09-28T18:04:49.400
1575
1575
6951
answer
I think that the sentence means “It disables (masks) interrupts temporarily,”
although I am not sure if I understand the author’s intent of the
parenthesized part “(マスク)” in the original sentence correctly.

不可 here means “disabled.” I would like to add that this usage is not common.
The usual word for “disabled” is 無効, and the sentence is more usually written
as 割り込みを一時的に無効にする, ignoring the parenthesized part.

In addition, I think that the use of parentheses in the given sentence is
nonstandard. The use indicates that マスク is either an explanation or a
paraphrase of 不可, but explaining 不可 as “mask” or “masking” is, well, a type
error. I think that what the author wanted to say is something like

> 割り込みを一時的に無効にする (マスクする)。

where マスクする (to mask) is another way of stating 無効にする (to disable).
CC BY-SA 3.0
2012-09-28T22:56:36.117
6956
2012-09-28T23:51:08.213
2012-09-28T23:51:08.213
15
15
6951
answer