Two threads scan the dirty buffers (buffers full of data not yet written to the disk), copy the data, and write it to the log. These threads are:
The User Log Cache (ULC) flusher
The Log Writer.