Method and device for generating journal file in domestic environment

2013 
The invention discloses a method and a device for generating a journal file in a domestic environment. The method comprises steps as follows: when a journal file generating instruction sent by a user is received, a first thread and a second thread are established, the first thread is triggered to establish a current journal file, and a first current time duration and a second current time duration are recorded respectively at the starting point of the time when the first thread is triggered to establish the current journal file; when the second current time duration is an integral multiple of a second time threshold value and reaches or exceeds a first time threshold value, the first thread is triggered to establish a new current journal file; and when the first current time duration reaches the second time threshold value, the second thread is triggered to write current journal data into a current journal file, so that before the first thread establishes a new journal file, the current journal data have been written into the current journal file, and consistency of the journal file and the journal data is realized.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    0
    References
    0
    Citations
    NaN
    KQI
    []