Batch-Apply Pillow Image Transforms, Then Parallelize: Processes vs Threads

Quick Overview

A Python coding exercise that applies a given sequence of Pillow transforms to a folder of cat images and then asks you to cut the total processing time. It tests clean per-image code, reasoning about CPU-bound work and the GIL, choosing between processes and threads, and sizing a worker pool.

Batch-Apply Pillow Image Transforms, Then Parallelize: Processes vs Threads

Company: Anthropic

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: hard

Interview Round: Onsite

Overview: A Python coding exercise that applies a given sequence of Pillow transforms to a folder of cat images and then asks you to cut the total processing time. It tests clean per-image code, reasoning about CPU-bound work and the GIL, choosing between processes and threads, and sizing a worker pool.

Read the full Anthropic Software Engineer interview experience this question came from

Anthropic logo
Anthropic
Jul 26, 2026
hardSoftware EngineerOnsiteSoftware Engineering Fundamentals
3
0
Loading...